Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
a29f8f76
Commit
a29f8f76
authored
Jul 02, 2016
by
Marc Cornellà
Browse files
Fix formatting of gb plugin completion
parent
d0ea3f22
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/getgb/getgb.plugin.zsh
View file @
a29f8f76
function
_gb_commands
()
{
_gb
()
{
local
ret
=
1 state
_arguments
-C
':command:->command'
'*::options:->options'
&&
ret
=
0
case
$state
in
(
command
)
local
-a
subcommands
subcommands
=(
"build:build a package"
...
...
@@ -19,7 +18,6 @@ function _gb_commands() {
)
_describe
-t
subcommands
'gb subcommands'
subcommands
&&
ret
=
0
;;
(
options
)
case
$line
[
1]
in
(
build
)
...
...
@@ -50,7 +48,7 @@ function _gb_commands() {
-tags
'["tag list" additional build tags]'
;;
(
vendor
)
_
_gb-vendor
_gb-vendor
esac
;;
esac
...
...
@@ -58,17 +56,14 @@ function _gb_commands() {
return
ret
}
compdef _gb
_commands
gb
compdef _gb gb
__gb-vendor
()
{
_gb-vendor
()
{
local
curcontext
=
"
$curcontext
"
state line
_arguments
-C
':command:->command'
'*::options:->options'
case
$state
in
(
command
)
local
-a
subcommands
subcommands
=(
'delete:deletes a local dependency'
...
...
@@ -80,7 +75,6 @@ __gb-vendor ()
)
_describe
-t
subcommands
'gb vendor subcommands'
subcommands
&&
ret
=
0
;;
(
options
)
case
$line
[
1]
in
(
delete
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment