Fedora packaging (hopefully)
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
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
This commit is contained in:
37
packaging/bash/kewt.bash
Normal file
37
packaging/bash/kewt.bash
Normal file
@@ -0,0 +1,37 @@
|
||||
_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
|
||||
Reference in New Issue
Block a user