mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-17 07:48:18 +01:00
33 lines
839 B
Text
33 lines
839 B
Text
_slpkg_module()
|
|
{
|
|
local cur prev OPTS
|
|
COMPREPLY=()
|
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
|
case $cur in
|
|
-*)
|
|
OPTS="
|
|
--help
|
|
--version
|
|
update
|
|
upgrade
|
|
check-updates
|
|
configs
|
|
clean-logs
|
|
clean-tmp
|
|
build
|
|
install
|
|
download
|
|
remove
|
|
find
|
|
view
|
|
search
|
|
dependees
|
|
tracking
|
|
"
|
|
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
|
|
return 0
|
|
;;
|
|
esac
|
|
return 0
|
|
}
|
|
complete -F _slpkg_module slpkg
|