We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9de43c commit ef453bfCopy full SHA for ef453bf
1 file changed
cmd/root/root.go
@@ -21,6 +21,7 @@ import (
21
"io/ioutil"
22
"net/http"
23
"os"
24
+ "strings"
25
26
_gitlab "github.com/factorysh/factory-cli/gitlab"
27
homedir "github.com/mitchellh/go-homedir"
@@ -83,8 +84,11 @@ Full documentation:
83
84
}
85
86
if GitlabToken == "" {
- fmt.Println("You must provide a valid gitlab token")
87
- os.Exit(1)
+ // do no raise for local command (runjob for now)
88
+ if strings.HasPrefix("runjob", cmd.Use) {
89
+ fmt.Println("You must provide a valid gitlab token")
90
+ os.Exit(1)
91
+ }
92
} else {
93
log.Debug(GitlabToken)
94
0 commit comments