From 0faefd089db982c0bf9a62b77b2e48734bf4c25e Mon Sep 17 00:00:00 2001 From: Zaq? Wiedmann Date: Tue, 19 Jun 2018 19:14:51 -0700 Subject: [PATCH] fix: prevent `lab create` from being passed through to hub --- cmd/root.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/root.go b/cmd/root.go index a73baa5b..2d650735 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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 {