mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-16 07:47:35 +01:00
Added bash completion
This commit is contained in:
parent
8ab2be3615
commit
8c31e0ccba
1 changed files with 33 additions and 0 deletions
33
completion/slpkg
Normal file
33
completion/slpkg
Normal file
|
@ -0,0 +1,33 @@
|
|||
_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
|
Loading…
Reference in a new issue