slpkg/completion/slpkg
Dimitris Zlatanidis d9c190d2fe Updated for opts
2024-03-28 10:25:21 +02:00

33 lines
814 B
Text

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