mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
Add auto-completion for puppet secret_agent:
Provides auto-complete options for puppet secret_agent sub-command.
This commit is contained in:
parent
207ce1ec8a
commit
fd1cfa6432
1 changed files with 30 additions and 0 deletions
|
|
@ -462,6 +462,14 @@ _resource_type_arguments=(
|
||||||
'--terminus: TERMINUS The indirector terminus to use'
|
'--terminus: TERMINUS The indirector terminus to use'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
local -a _secret_agent_arguments
|
||||||
|
_secret_agent_arguments=(
|
||||||
|
'synchronize:Run secret_agent once'
|
||||||
|
'--render-as:FORMAT The rendering format to use'
|
||||||
|
'--verbose:Whether to log verbosely'
|
||||||
|
'--debug:Whether to log debug information'
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
__task_list ()
|
__task_list ()
|
||||||
|
|
@ -967,6 +975,23 @@ __puppet-resource_type ()
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__puppet-secret_agent ()
|
||||||
|
{
|
||||||
|
local curcontext="$curcontext" state line
|
||||||
|
typeset -A opt_args
|
||||||
|
|
||||||
|
_arguments -C \
|
||||||
|
':command:->command' \
|
||||||
|
'*::options:->options'
|
||||||
|
|
||||||
|
case $state in
|
||||||
|
(command)
|
||||||
|
_describe -t commands "gem subcommand" _secret_agent_arguments
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
local expl
|
local expl
|
||||||
|
|
@ -1136,6 +1161,11 @@ case $state in
|
||||||
(resource_type)
|
(resource_type)
|
||||||
__puppet-resource_type
|
__puppet-resource_type
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
# Display sub-commands for puppet secret_agent.
|
||||||
|
(secret_agent)
|
||||||
|
__puppet-secret_agent
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue