Skip to content

Commit

Permalink
fix: prevent lab create from being passed through to hub
Browse files Browse the repository at this point in the history
  • Loading branch information
zaquestion committed Jun 20, 2018
1 parent d3b1b72 commit 0faefd0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ func Execute() {
}
}

// Lab passthrough for these commands can cause confusion. See #163
if os.Args[1] == "create" {
log.Fatalf("Please call `hub create` directly for github, the lab equivalent is `lab project create`")
}

// Passthrough to git for any unrecognized commands
err = git.New(os.Args[1:]...).Run()
if exiterr, ok := err.(*exec.ExitError); ok {
Expand Down

0 comments on commit 0faefd0

Please sign in to comment.