forked from artix/artools
Compare commits
1 Commits
master
...
ci-complet
Author | SHA1 | Date | |
---|---|---|---|
70e7fbaf14
|
@@ -70,7 +70,7 @@ _artixpkg_completion() {
|
|||||||
|
|
||||||
case "${comp_cword_exflag}" in
|
case "${comp_cword_exflag}" in
|
||||||
1)
|
1)
|
||||||
COMPREPLY=($(compgen -W "admin ci git repo version -h --help" -- "${cur}"))
|
COMPREPLY=($(compgen -W "admin git repo version -h --help" -- "${cur}"))
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
@@ -78,11 +78,8 @@ _artixpkg_completion() {
|
|||||||
admin)
|
admin)
|
||||||
COMPREPLY=($(compgen -W "maintainer query team topic transfer -h --help" -- ${cur}))
|
COMPREPLY=($(compgen -W "maintainer query team topic transfer -h --help" -- ${cur}))
|
||||||
;;
|
;;
|
||||||
ci)
|
|
||||||
COMPREPLY=($(compgen -W "config -h --help" -- ${cur}))
|
|
||||||
;;
|
|
||||||
git)
|
git)
|
||||||
COMPREPLY=($(compgen -W "clone config create pull push -h --help" -- ${cur}))
|
COMPREPLY=($(compgen -W "ci clone config create pull push -h --help" -- ${cur}))
|
||||||
;;
|
;;
|
||||||
repo)
|
repo)
|
||||||
COMPREPLY=($(compgen -W "add remove move import show -h --help" -- ${cur}))
|
COMPREPLY=($(compgen -W "add remove move import show -h --help" -- ${cur}))
|
||||||
@@ -215,17 +212,13 @@ _artixpkg_completion() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
"artixpkg ci config"*)
|
"artixpkg git ci"*)
|
||||||
case "${prev}" in
|
case "${prev}" in
|
||||||
"-j"|"--jobs")
|
|
||||||
# this flag expects a parameter
|
|
||||||
COMPREPLY=()
|
|
||||||
;;
|
|
||||||
"-a"|"--agent")
|
"-a"|"--agent")
|
||||||
COMPREPLY=($(compgen -W "$agents" -- ${cur}))
|
COMPREPLY=($(compgen -W "$agents" -- ${cur}))
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
COMPREPLY=($(compgen -W "-a --agent -s --switch -j --jobs -h --help $(_artixpkg_pkgbase)" -- ${cur}))
|
COMPREPLY=($(compgen -W "-a --agent -h --help $(_artixpkg_pkgbase)" -- ${cur}))
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user