Skip to content

Commit

Permalink
chore: regenerate autocomplete files
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmauro committed Nov 26, 2024
1 parent d80eaa5 commit 5b81995
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
7 changes: 7 additions & 0 deletions zkstack_cli/crates/zkstack/completion/_zkstack.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,14 @@ _arguments "${_arguments_options[@]}" : \
;;
(server)
_arguments "${_arguments_options[@]}" : \
'--mode=[]:MODE:(release debug docker)' \
'--tag=[]:TAG:_default' \
'*--components=[Components of server to run]:COMPONENTS:_default' \
'*-a+[Additional arguments that can be passed through the CLI]:ADDITIONAL_ARGS:_default' \
'*--additional-args=[Additional arguments that can be passed through the CLI]:ADDITIONAL_ARGS:_default' \
'--chain=[Chain to use]:CHAIN:_default' \
'--genesis[Run server in genesis mode]' \
'--uring[Enables uring support for RocksDB]' \
'-v[Verbose mode]' \
'--verbose[Verbose mode]' \
'--ignore-prerequisites[Ignores prerequisites checks]' \
Expand Down
22 changes: 21 additions & 1 deletion zkstack_cli/crates/zkstack/completion/zkstack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1698,12 +1698,32 @@ _zkstack() {
return 0
;;
zkstack__chain__genesis__server)
opts="-v -h --verbose --chain --ignore-prerequisites --help"
opts="-a -v -h --mode --tag --components --genesis --additional-args --uring --verbose --chain --ignore-prerequisites --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
--mode)
COMPREPLY=($(compgen -W "release debug docker" -- "${cur}"))
return 0
;;
--tag)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--components)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--additional-args)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
-a)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--chain)
COMPREPLY=($(compgen -f "${cur}"))
return 0
Expand Down

0 comments on commit 5b81995

Please sign in to comment.