mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-15 04:41:19 +02:00
Add auto-completion for puppet inspect:
Provides auto-complete options for puppet inspect sub-command.
This commit is contained in:
parent
b7fddb6c28
commit
e10b808c43
1 changed files with 29 additions and 1 deletions
|
|
@ -267,6 +267,12 @@ _filebucket_arguments=(
|
||||||
'--bucket:<directory> undocumented action'
|
'--bucket:<directory> undocumented action'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
local -a _inspect_arguments
|
||||||
|
_inspect_arguments=(
|
||||||
|
'--archive_files:During an inspect run, whether to archive files whose contents are audited to a file bucket'
|
||||||
|
'--archive_file_server:During an inspect run, the file bucket server to archive files to if archive_files is set'
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
__task_list ()
|
__task_list ()
|
||||||
{
|
{
|
||||||
|
|
@ -516,6 +522,23 @@ __puppet-filebucket ()
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__puppet-inspect ()
|
||||||
|
{
|
||||||
|
local curcontext="$curcontext" state line
|
||||||
|
typeset -A opt_args
|
||||||
|
|
||||||
|
_arguments -C \
|
||||||
|
':command:->command' \
|
||||||
|
'*::options:->options'
|
||||||
|
|
||||||
|
case $state in
|
||||||
|
(command)
|
||||||
|
_describe -t commands "gem subcommand" _inspect_arguments
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
local expl
|
local expl
|
||||||
|
|
@ -606,10 +629,15 @@ case $state in
|
||||||
__puppet-file
|
__puppet-file
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# Display sub-commands for puppet file.
|
# Display sub-commands for puppet filebucket.
|
||||||
(filebucket)
|
(filebucket)
|
||||||
__puppet-filebucket
|
__puppet-filebucket
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
# Display sub-commands for puppet inspect.
|
||||||
|
(inspect)
|
||||||
|
__puppet-inspect
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue