summaryrefslogtreecommitdiffstats
path: root/mkhint.bash-completion
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-07-04 09:29:44 +0200
committerDanilo M. <danix@danix.xyz>2026-07-04 09:29:44 +0200
commitd898f624bd3b03c99c1e889c1fb7e8fd68f033cf (patch)
tree11b6b874e24c6e6326eafc36302d7c0bab81254a /mkhint.bash-completion
parent11d1c51b97ae830b591c51b874da01de90a083dc (diff)
downloadmkhintfile-d898f624bd3b03c99c1e889c1fb7e8fd68f033cf.tar.gz
mkhintfile-d898f624bd3b03c99c1e889c1fb7e8fd68f033cf.zip
feat: -l <pkg...> shows side-by-side hint vs .info
With package names, --list skips the table and shows each named hint diffed against its .info (git diff --no-index, else diff -y), missing hint exits 2. Diff display extracted to _show_hint_diff, shared with --review. Bash completion completes hint names after -l. Adds T58, T59. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'mkhint.bash-completion')
-rw-r--r--mkhint.bash-completion4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkhint.bash-completion b/mkhint.bash-completion
index 6d05ea3..1a72da2 100644
--- a/mkhint.bash-completion
+++ b/mkhint.bash-completion
@@ -10,10 +10,10 @@ _mkhintfile_completions() {
local all_flags="--version -v --hintfile -f --new -n --list -l --review -R --clean -c --check -C --fix-current -F --delete -d --no-dl -N --help -h"
- # -R/--review takes any number of hint names; complete them repeatedly.
+ # -R/--review and -l/--list take any number of hint names; complete them repeatedly.
local w in_review=""
for w in "${COMP_WORDS[@]:1}"; do
- [[ "$w" == "-R" || "$w" == "--review" ]] && in_review=1
+ [[ "$w" == "-R" || "$w" == "--review" || "$w" == "-l" || "$w" == "--list" ]] && in_review=1
done
if [[ -n "$in_review" && "$cur" != -* ]]; then
local -a rwords=()