mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
Add auto-completion for puppet instrumentation_listener:
Provides auto-complete options for puppet instrumentation_listener sub-command.
This commit is contained in:
parent
9d212abf3b
commit
bf3555088b
1 changed files with 37 additions and 0 deletions
|
|
@ -284,6 +284,21 @@ _instrumentation_data_arguments=(
|
||||||
'--terminus: TERMINUS The indirector terminus to use'
|
'--terminus: TERMINUS The indirector terminus to use'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
local -a _instrumentation_listener_arguments
|
||||||
|
_instrumentation_listener_arguments=(
|
||||||
|
'disable:Disable a given instrumentation listener'
|
||||||
|
'enable:Enable a given instrumentation listener'
|
||||||
|
'find:Retrieve a single listener'
|
||||||
|
'info:Print the default terminus class for this face'
|
||||||
|
'save:API only: modify an instrumentation listener status'
|
||||||
|
'search:Retrieve all instrumentation listeners statuses'
|
||||||
|
'--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 ()
|
__task_list ()
|
||||||
{
|
{
|
||||||
|
|
@ -567,6 +582,23 @@ __puppet-instrumentation_data ()
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__puppet-instrumentation_listener ()
|
||||||
|
{
|
||||||
|
local curcontext="$curcontext" state line
|
||||||
|
typeset -A opt_args
|
||||||
|
|
||||||
|
_arguments -C \
|
||||||
|
':command:->command' \
|
||||||
|
'*::options:->options'
|
||||||
|
|
||||||
|
case $state in
|
||||||
|
(command)
|
||||||
|
_describe -t commands "gem subcommand" _instrumentation_listener_arguments
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
local expl
|
local expl
|
||||||
|
|
@ -671,6 +703,11 @@ case $state in
|
||||||
(instrumentation_data)
|
(instrumentation_data)
|
||||||
__puppet-instrumentation_data
|
__puppet-instrumentation_data
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
# Display sub-commands for puppet instrumentation_listener.
|
||||||
|
(instrumentation_listener)
|
||||||
|
__puppet-instrumentation_listener
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue