mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
Add auto-completion for puppet filebucket:
Provides auto-complete options for puppet filebucket sub-command.
This commit is contained in:
parent
d0095421ac
commit
b7fddb6c28
1 changed files with 42 additions and 0 deletions
|
|
@ -247,6 +247,26 @@ _file_arguments=(
|
||||||
'--terminus: TERMINUS The indirector terminus to use'
|
'--terminus: TERMINUS The indirector terminus to use'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
local -a _filebucket_arguments
|
||||||
|
_filebucket_arguments=(
|
||||||
|
'-h:Print this help message'
|
||||||
|
'--help:Print this help message'
|
||||||
|
'-V:Print version information'
|
||||||
|
'--version:Print version information'
|
||||||
|
'-d:Enable full debugging'
|
||||||
|
'--debug:Enable full debugging'
|
||||||
|
'-v:Print extra information'
|
||||||
|
'--verbose:Print extra information'
|
||||||
|
'-l:Use the local filebucket'
|
||||||
|
'--local:Use the local filebucket'
|
||||||
|
'-r:Use a remote filebucket'
|
||||||
|
'--remote:Use a remote filebucket'
|
||||||
|
'-s:<server> The server to send the file to, instead of locally'
|
||||||
|
'-server:<server> The server to send the file to, instead of locally'
|
||||||
|
'-b:<directory> undocumented action'
|
||||||
|
'--bucket:<directory> undocumented action'
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
__task_list ()
|
__task_list ()
|
||||||
{
|
{
|
||||||
|
|
@ -479,6 +499,23 @@ __puppet-file ()
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__puppet-filebucket ()
|
||||||
|
{
|
||||||
|
local curcontext="$curcontext" state line
|
||||||
|
typeset -A opt_args
|
||||||
|
|
||||||
|
_arguments -C \
|
||||||
|
':command:->command' \
|
||||||
|
'*::options:->options'
|
||||||
|
|
||||||
|
case $state in
|
||||||
|
(command)
|
||||||
|
_describe -t commands "gem subcommand" _filebucket_arguments
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
local expl
|
local expl
|
||||||
|
|
@ -568,6 +605,11 @@ case $state in
|
||||||
(file)
|
(file)
|
||||||
__puppet-file
|
__puppet-file
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
# Display sub-commands for puppet file.
|
||||||
|
(filebucket)
|
||||||
|
__puppet-filebucket
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue