Update zsh completion, add file completion

This commit is contained in:
Bengt Brodersen 2017-07-31 10:43:38 +02:00 committed by GitHub
parent c2f142eea3
commit 4cc8f25464
1 changed files with 19 additions and 15 deletions

View File

@ -20,12 +20,14 @@ __build() {
'-parallel=[(false) Disable parallelization (on by default)]' \
'-var[("key=value") Variable for templates, can be used multiple times.]' \
'-var-file=[(path) JSON file containing user variables.]'
_files -g "*.json"
}
__inspect() {
_arguments \
'-machine-readable[Machine-readable output]'
_files -g "*.json"
}
__push() {
@ -34,6 +36,7 @@ __push() {
'-token=[(<token>) Access token to use to upload.]' \
'-var[("key=value") Variable for templates, can be used multiple times.]' \
'-var-file=[(path) JSON file containing user variables.]'
_files -g "*.json"
}
__validate() {
@ -43,6 +46,7 @@ __validate() {
'-only=[(foo,bar,baz) Validate only these builds]' \
'-var[("key=value") Variable for templates, can be used multiple times.]' \
'-var-file=[(path) JSON file containing user variables.]'
_files -g "*.json"
}