mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Add auto-completion for puppet ca:
Provides auto-complete options for puppet ca sub-command.
This commit is contained in:
parent
cbddb89699
commit
5794fcd28a
1 changed files with 34 additions and 0 deletions
|
|
@ -93,6 +93,18 @@ _apply_arguments=(
|
|||
'--write-catalog-summary:<file> After compiling the catalog saves the resource list and classes list'
|
||||
)
|
||||
|
||||
local -a _ca_arguments
|
||||
_ca_arguments=(
|
||||
'destroy:undocumented action'
|
||||
'fingerprint:undocumented action'
|
||||
'generate:undocumented action'
|
||||
'list:List certificates and/or certificate requests'
|
||||
'print:undocumented action'
|
||||
'revoke:undocumented action'
|
||||
'sign:undocumented action'
|
||||
'verify:undocumented action'
|
||||
)
|
||||
|
||||
__task_list ()
|
||||
{
|
||||
local expl
|
||||
|
|
@ -137,6 +149,23 @@ __puppet-apply ()
|
|||
esac
|
||||
}
|
||||
|
||||
__puppet-ca ()
|
||||
{
|
||||
local curcontext="$curcontext" state line
|
||||
typeset -A opt_args
|
||||
|
||||
_arguments -C \
|
||||
':command:->command' \
|
||||
'*::options:->options'
|
||||
|
||||
case $state in
|
||||
(command)
|
||||
_describe -t commands "gem subcommand" _ca_arguments
|
||||
return
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
||||
|
||||
local expl
|
||||
|
|
@ -171,6 +200,11 @@ case $state in
|
|||
(apply)
|
||||
__puppet-apply
|
||||
;;
|
||||
|
||||
# Display sub-commands for puppet ca.
|
||||
(ca)
|
||||
__puppet-ca
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue