Skip to content

Commit

Permalink
Merge pull request #192 from suganyasuven/master
Browse files Browse the repository at this point in the history
Update zsh completion script
  • Loading branch information
hevayo authored Jan 10, 2022
2 parents d93e195 + 62e8285 commit b5ec0ed
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions resources/scripts/_bal
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ _bal() {
typeset -A opt_args

_arguments \
'1:command:(-v -h --help --version add bindgen build clean dist doc encrypt format grpc help init new openapi pull push run search shell test update version)' \
'1:command:(-v -h --help --version add bindgen build clean dist doc encrypt format grpc help init new openapi pack pull push run search shell test update version)' \
'*:: :->command_flags'

case $state in
Expand All @@ -30,7 +30,6 @@ _bal() {
;;
build)
_arguments \
'-c' \
'-o' \
'--cloud' \
'--code-coverage' \
Expand All @@ -47,6 +46,11 @@ _bal() {
'--test-report' \
'*: :_default'
;;
clean)
_arguments \
'--target-dir' \
'*: :_default'
;;
dist)
_arguments \
'1: :(list pull remove update use)' \
Expand All @@ -60,6 +64,7 @@ _bal() {
'--exclude' \
'--output' \
'--experimental' \
'--target-dir' \
'*: :_default'
;;
format)
Expand Down Expand Up @@ -112,6 +117,7 @@ _bal() {
'--experimental' \
'--observability-included' \
'--offline' \
'--target-dir' \
'*: :_default'
;;
shell)
Expand All @@ -137,6 +143,7 @@ _bal() {
'--rerun-failed' \
'--tests' \
'--test-report' \
'--target-dir' \
'*: :_default'
;;
esac
Expand Down

0 comments on commit b5ec0ed

Please sign in to comment.