mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-09 02:24:03 +01:00
updating scripts
This commit is contained in:
parent
a9da3e497d
commit
1c1ab1eaec
7 changed files with 162 additions and 9 deletions
41
plugins/buildbot/_buildslave
Normal file
41
plugins/buildbot/_buildslave
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
#compdef buildslave
|
||||
|
||||
_buildslave()
|
||||
{
|
||||
typeset -A opt_args
|
||||
local context state line curcontext="$curcontext"
|
||||
|
||||
local ret=1
|
||||
|
||||
_arguments -C : \
|
||||
'(- 1 *)--help[show usage]'\
|
||||
'(- 1 *)--version[display version]'\
|
||||
'(- 1 *)--verbose[verbose output]'\
|
||||
'1:command:->command'\
|
||||
'*::args:->args' && ret=0
|
||||
|
||||
case $state in
|
||||
(command)
|
||||
local commands;
|
||||
commands=(
|
||||
'create-slave:Create and populate a directory for a new buildslave'
|
||||
'upgrade-slave:Upgrade an existing buildslave directory for the current version'
|
||||
'start:Start a buildslave'
|
||||
'stop:Stop a buildslave'
|
||||
'restart:Restart a buildslave'
|
||||
)
|
||||
_describe -t commands 'command' commands && ret=0
|
||||
;;
|
||||
(args)
|
||||
ret=0
|
||||
;;
|
||||
esac
|
||||
|
||||
return $ret
|
||||
}
|
||||
|
||||
_buildslave "$@"
|
||||
return $?
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue