mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
Add auto-completion for puppet report:
Provides auto-complete options for puppet report sub-command.
This commit is contained in:
parent
6dd78d676e
commit
714da4218b
1 changed files with 34 additions and 0 deletions
|
|
@ -420,6 +420,18 @@ _plugin_arguments=(
|
|||
'--debug:Whether to log debug information'
|
||||
)
|
||||
|
||||
local -a _report_arguments
|
||||
_report_arguments=(
|
||||
'info:Print the default terminus class for this face'
|
||||
'save:API only: submit a report'
|
||||
'submit:API only: submit a report with error handling'
|
||||
'--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 ()
|
||||
|
|
@ -874,6 +886,23 @@ __puppet-plugin ()
|
|||
esac
|
||||
}
|
||||
|
||||
__puppet-report ()
|
||||
{
|
||||
local curcontext="$curcontext" state line
|
||||
typeset -A opt_args
|
||||
|
||||
_arguments -C \
|
||||
':command:->command' \
|
||||
'*::options:->options'
|
||||
|
||||
case $state in
|
||||
(command)
|
||||
_describe -t commands "gem subcommand" _report_arguments
|
||||
return
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
||||
|
||||
local expl
|
||||
|
|
@ -1028,6 +1057,11 @@ case $state in
|
|||
(plugin)
|
||||
__puppet-plugin
|
||||
;;
|
||||
|
||||
# Display sub-commands for puppet report.
|
||||
(report)
|
||||
__puppet-report
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue