aboutsummaryrefslogtreecommitdiffstats
path: root/mkhint.bash-completion
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-25 11:56:21 +0200
committerDanilo M. <danix@danix.xyz>2026-09-25 11:56:21 +0200
commit20d3c8e798085493f6f08a41f3793e29c56e5b54 (patch)
tree6ecf20fa3514716feee763c5b0ca6f8412e789f2 /mkhint.bash-completion
parent9262725eca4ef63be9c7086fad1c59d27026caab (diff)
downloadmkhintfile-20d3c8e798085493f6f08a41f3793e29c56e5b54.tar.gz
mkhintfile-20d3c8e798085493f6f08a41f3793e29c56e5b54.zip
feat: add --strip-version/-S and --versions
-S removes VERSION, DOWNLOAD and MD5SUM (plus arch-suffixed variants) from hint files so slackrepo falls back to the repository's current version, keeping every other modification. --check now skips hints with no VERSION line instead of hitting the empty-pattern sed path. --versions compares the SBo .info, newest built package, hint and nvchecker upstream versions for one or more packages, coloured like --list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'mkhint.bash-completion')
-rw-r--r--mkhint.bash-completion6
1 files changed, 3 insertions, 3 deletions
diff --git a/mkhint.bash-completion b/mkhint.bash-completion
index c7c4a14..22c8df9 100644
--- a/mkhint.bash-completion
+++ b/mkhint.bash-completion
@@ -14,7 +14,7 @@ _mkhintfile_completions() {
hint_dir="${HINT_DIR:-$hint_dir}"
repo_dir="${repo_dir%/}"; hint_dir="${hint_dir%/}"
- local all_flags="--version -v --set-version -V --hintfile -f --new -n --list -l --review -R --clean -c --check -C --fix-current -F --delete -d --no-dl -N --info -i --force --help -h"
+ local all_flags="--version -v --set-version -V --hintfile -f --new -n --list -l --review -R --clean -c --check -C --fix-current -F --strip-version -S --versions --delete -d --no-dl -N --info -i --force --help -h"
# -R/--review and -l/--list take any number of hint names; complete them repeatedly.
local w in_review=""
@@ -31,7 +31,7 @@ _mkhintfile_completions() {
fi
case "$prev" in
- --new|-n|--info|-i)
+ --new|-n|--info|-i|--versions)
# Packages live at REPO_DIR/<category>/<pkg>/; complete the pkg dir
# names. Strip the trailing slash and category prefix with param
# expansion (no per-dir basename fork — the repo has thousands).
@@ -41,7 +41,7 @@ _mkhintfile_completions() {
done
COMPREPLY=($(compgen -W "${words[*]}" -- "$cur"))
;;
- --hintfile|-f|--delete|-d|--check|-C)
+ --hintfile|-f|--delete|-d|--check|-C|--strip-version|-S)
local -a words=()
for f in "$hint_dir"/*.hint; do
[[ -f "$f" ]] && words+=("$(basename "${f%.hint}")")