mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
Add auto-completion for puppet status:
Provides auto-complete options for puppet status sub-command.
This commit is contained in:
parent
fd1cfa6432
commit
13b0153456
1 changed files with 33 additions and 0 deletions
|
|
@ -470,6 +470,17 @@ _secret_agent_arguments=(
|
|||
'--debug:Whether to log debug information'
|
||||
)
|
||||
|
||||
local -a _status_arguments
|
||||
_status_arguments=(
|
||||
'find:Check status of puppet master server'
|
||||
'info:Print the default terminus class for this face'
|
||||
'--render-as:FORMAT The rendering format to use'
|
||||
'--verbose:Whether to log verbosely'
|
||||
'--debug:Whether to log debug information'
|
||||
'--extra:HASH Extra arguments to pass to the indirection request'
|
||||
'--terminus: TERMINUS The indirector terminus to use'
|
||||
)
|
||||
|
||||
|
||||
|
||||
__task_list ()
|
||||
|
|
@ -992,6 +1003,23 @@ __puppet-secret_agent ()
|
|||
esac
|
||||
}
|
||||
|
||||
__puppet-status ()
|
||||
{
|
||||
local curcontext="$curcontext" state line
|
||||
typeset -A opt_args
|
||||
|
||||
_arguments -C \
|
||||
':command:->command' \
|
||||
'*::options:->options'
|
||||
|
||||
case $state in
|
||||
(command)
|
||||
_describe -t commands "gem subcommand" _status_arguments
|
||||
return
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
||||
|
||||
local expl
|
||||
|
|
@ -1166,6 +1194,11 @@ case $state in
|
|||
(secret_agent)
|
||||
__puppet-secret_agent
|
||||
;;
|
||||
|
||||
# Display sub-commands for puppet status.
|
||||
(status)
|
||||
__puppet-status
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue