slpkg/completion/slpkg
Dimitris Zlatanidis ecc5bbb80e Added command
2023-03-07 18:43:31 +02:00

35 lines
880 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_data
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