mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-05 11:02:14 +01:00
15 lines
415 B
Text
15 lines
415 B
Text
|
_slpkg()
|
||
|
{
|
||
|
local cur
|
||
|
cur=${COMP_WORDS[COMP_CWORD]}
|
||
|
|
||
|
if [[ "$cur" == -* ]]; then
|
||
|
COMPREPLY=( $( compgen -W "--help --version update upgrade repo-add repo-remove repo-list repo-info slpkg --list --add --remove --build --install --build-install --config --index --installed --upgrade --color" -- $cur ))
|
||
|
|
||
|
else
|
||
|
_filedir
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
complete -F _slpkg slpkg
|