Skip to content

Commit

Permalink
Merge pull request #225 from xmudrii/completion-without-init
Browse files Browse the repository at this point in the history
completion: make completion code generation independent on auth status
  • Loading branch information
mauricio authored May 17, 2017
2 parents 000bd6a + cb43665 commit b994643
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions commands/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,8 @@ func Completion() *Command {
IsIndex: true,
}

CmdBuilder(cmd, RunCompletionBash, "bash", "generate bash completion code",
Writer, aliasOpt("b"))

CmdBuilder(cmd, RunCompletionZsh, "zsh", "generate zsh completion code",
Writer, aliasOpt("z"))
cmdBuilderWithInit(cmd, RunCompletionBash, "bash", "generate bash completion code", Writer, false)
cmdBuilderWithInit(cmd, RunCompletionZsh, "zsh", "generate zsh completion code", Writer, false)

return cmd
}
Expand Down

0 comments on commit b994643

Please sign in to comment.