diff options
| author | Danilo M. <danix@danix.xyz> | 2026-06-13 17:29:48 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-06-13 17:29:48 +0200 |
| commit | d0bbdb431e34521f30508dc98d8f8b141baafd3b (patch) | |
| tree | c69b0ce5b2ee5ade7a68b2eb9016db65fc772138 | |
| parent | 97388e75b2399434847b7e2b3838248f4e76d2b2 (diff) | |
| download | mkhintfile-d0bbdb431e34521f30508dc98d8f8b141baafd3b.tar.gz mkhintfile-d0bbdb431e34521f30508dc98d8f8b141baafd3b.zip | |
feat(completion): add --check/-C flag and package-name completion
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
| -rw-r--r-- | mkhint.bash-completion | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mkhint.bash-completion b/mkhint.bash-completion index dee57e7..b786bc3 100644 --- a/mkhint.bash-completion +++ b/mkhint.bash-completion @@ -8,7 +8,7 @@ _mkhintfile_completions() { repo_dir="/var/lib/sbopkg/SBo-danix" hint_dir="/etc/slackrepo/SBo-danix/hintfiles" - local all_flags="--version -v --hintfile -f --new -n --list -l --clean -c --delete -d --no-dl -N --help -h" + local all_flags="--version -v --hintfile -f --new -n --list -l --clean -c --check -C --delete -d --no-dl -N --help -h" case "$prev" in --new|-n) @@ -18,7 +18,7 @@ _mkhintfile_completions() { done < <(find "$repo_dir" -mindepth 2 -maxdepth 2 -name "*.info" 2>/dev/null) COMPREPLY=($(compgen -W "${words[*]}" -- "$cur")) ;; - --hintfile|-f|--delete|-d) + --hintfile|-f|--delete|-d|--check|-C) local -a words=() for f in "$hint_dir"/*.hint; do [[ -f "$f" ]] && words+=("$(basename "${f%.hint}")") |
