Releases: fcolista/apkfile
Release 0.1.2
Added missing check() call and updated README.md Signed-off-by: Francesco Colista <francesco.colista@gmail.com>
Release 0.1.1
v0.1.1 Release version 0.1.1 - POSIX compliance updates
Release 0.1
Release Notes for apkfile
v0.1
We’re excited to announce the release of apkfile v0.1! This update introduces several improvements to make the script more user-friendly, robust, and feature-rich. Below is a summary of the changes:
New Features and Improvements
-
Automatic Branch Normalization:
- The script now automatically normalizes branch inputs like
3.21
tov3.21
. - Example:
./apkfile "wget" "x86_64" "3.21"
is treated asv3.21
.
- The script now automatically normalizes branch inputs like
-
Improved Input Handling:
- The script is now smarter in handling arguments for
ARCH
andBRANCH
. - If the second argument is a valid branch (e.g.,
3.21
orv3.21
), it is treated as the branch, and the defaultARCH
(x86_64
) is used. - If the second argument is a valid architecture (e.g.,
aarch64
), it is treated as theARCH
, and the defaultBRANCH
(edge
) is used.
- The script is now smarter in handling arguments for
-
Better Output Formatting:
- The script now provides cleaner and more readable output for search results.
- Results are formatted in a table-like structure for easier reading.
-
Caching for API Responses:
- API responses are now cached to avoid repeated requests for the same data.
- Cache directory:
/tmp/apkfile_cache
.
-
Logging Feature:
- Added a
-l
flag to log script output to a file. - Log file:
/tmp/apkfile.log
.
- Added a
-
Version Flag:
- Added a
-v
flag to display the script's version. - Example:
./apkfile -v
.
- Added a
-
Improved Error Handling:
- The script now provides clear error messages for invalid inputs (e.g., invalid
ARCH
orBRANCH
).
- The script now provides clear error messages for invalid inputs (e.g., invalid
-
Configuration File:
- Added support for a configuration file (
~/.apkfilerc
) to specify default values forARCH
andBRANCH
.
- Added support for a configuration file (
Bug Fixes
- Fixed an issue where the script would fail if
$1
(pattern) was not provided. - Improved handling of multi-line HTML responses in the
query
function.
How to Use
Basic Usage
./apkfile PATTERN [ARCH] [BRANCH]
- PATTERN: The file you are looking for. Supports wildcards (e.g., wge*
).
- ARCH: Optional. Default: x86_64
- BRANCH: Optional. Default: edge
.
Full List of Options
Option | Description |
---|---|
-h | Show help |
-c | Check supported versions and architectures |
-l | Log output to /tmp/apkfile.log |
-v | Show version |
Examples
Search for a File:
./apkfile "wget"
Search for a File with Custom Arch and Branch:
./apkfile "wget" "aarch64" "v3.18"
Search for a File with Automatic Branch Normalization:
./apkfile "wget" "x86_64" "3.21"
Check Supported Versions and Architectures:
./apkfile -c
Log Output to File:
./apkfile -l "wget"
Show Version:
./apkfile -v
Configuration File
You can create a configuration file (~/.apkfilerc
) to specify default values for ARCH
and BRANCH
.
Example:
# Default architecture
arch="x86_64"
# Default branch
branch="edge"
Valid Values
Parameter | Valid Values |
---|---|
ARCH | x86_64, x86, aarch64, armhf, ppc64le, s390x, armv7, riscv64, loongarch64, all |
BRANCH | v3.21, v3.20, v3.19, v3.18, v3.17, v3.16, v3.15, v3.14, v3.13, v3.12, v3.11, v3.10, v3.9, v3.8, v3.7, v3.6, v3.5, v3.4, v3.3, edge, all |
Feedback and Support
We hope you enjoy the new features! If you have any questions, feedback, or issues, please open an issue on our GitHub repository.
v0.08
Full Changelog: v0.07...v0.08
v0.07
Fixed issue that made the script fail after changes done on https://pkgs.alpinelinux.org