Files
kewt/packaging/bash/kewt.bash
N0\A 930e1ac4dc
Some checks failed
Deploy Website / deploy-website (push) Successful in 39s
Publish kewt-git to AUR / publish-aur-git (push) Successful in 21s
Release Standalone Builder / build (release) Successful in 27s
Release Standalone Builder / publish-fedora (release) Failing after 15s
Release Standalone Builder / publish-aur (release) Successful in 22s
Release Standalone Builder / publish-homebrew (release) Successful in 7s
Fedora packaging (hopefully)
2026-05-20 10:30:10 +02:00

38 lines
898 B
Bash

_kewt() {
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
opts="--help --new --init --clean --no-clean --update --post --generate-template --version --from --to --watch -w --serve -s --draft --dry-run"
case "$prev" in
--from|--to)
COMPREPLY=$(compgen -d -- "$cur")
return 0
;;
--serve|-s)
COMPREPLY=()
return 0
;;
--new|--init|--update)
COMPREPLY=$(compgen -d -- "$cur")
return 0
;;
--generate-template)
COMPREPLY=$(compgen -f -- "$cur")
return 0
;;
esac
if [[ "$cur" == -* ]]; then
COMPREPLY=$(compgen -W "$opts" -- "$cur")
return 0
fi
COMPREPLY=$(compgen -d -- "$cur")
return 0
}
complete -F _kewt kewt