slpkg/completion/slpkg
Dimitris Zlatanidis 8dce6cace5 Added help command
2023-02-27 10:59:57 +02:00

34 lines
864 B
Text

_slpkg_module()
{
local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
case $cur in
-*)
OPTS="
--help
--version
help
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