Skip to content

Commit

Permalink
Merge pull request #44 from motemen/zsh-completion-import
Browse files Browse the repository at this point in the history
fixup docs and zsh completion
  • Loading branch information
motemen committed Oct 11, 2014
2 parents def109f + 1a58706 commit 792e93c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
6 changes: 3 additions & 3 deletions commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,17 @@ var commandLook = cli.Command{

var commandImport = cli.Command{
Name: "import",
Usage: "Bulk get repositories from a file or stdin",
Usage: "Bulk get repositories from stdin",
Action: doImport,
Flags: cloneFlags,
}

var commandRoot = cli.Command{
Name: "root",
Usage: "Returns repositories' root",
Usage: "Show repositories' root",
Action: doRoot,
Flags: []cli.Flag{
cli.BoolFlag{Name: "all", Usage: "Return all roots"},
cli.BoolFlag{Name: "all", Usage: "Show all roots"},
},
}

Expand Down
12 changes: 3 additions & 9 deletions zsh/_ghq
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ function _ghq () {
'1: :__ghq_repositories' \
&& ret=0
;;
(import)
_arguments -C \
'(-u)-u[]' \
'(- :)*: :(starred pocket)' \
&& ret=0
;;
(help|h)
__ghq_commands && ret=0
;;
Expand All @@ -62,9 +56,9 @@ __ghq_commands () {
'get:Clone/sync with a remote repository'
'list:List local repositories'
'look:Look into a local repository'
'import:Import repositories from other web services'
"root:Returns repositories' root"
'help:Shows a list of commands or help for one command'
'import:Bulk get repositories from stdin'
"root:Show repositories' root"
'help:Show a list of commands or help for one command'
)

_describe -t commands Commands _c
Expand Down

0 comments on commit 792e93c

Please sign in to comment.