We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2e55b9 commit 7c660d3Copy full SHA for 7c660d3
main.go
@@ -32,6 +32,14 @@ func main() {
32
c := config.NewConfig(configFileName, homeDirectory, configType)
33
api := mite.NewApi(c.GetApiUrl(), c.GetApiKey(), v.Version)
34
35
+ if c.GetApiUrl() == "" {
36
+ _, _ = fmt.Fprintln(os.Stderr, "please configure your API url by executing: 'mite config api.url=<your mite api url>'")
37
+ }
38
+
39
+ if c.GetApiKey() == "" {
40
+ _, _ = fmt.Fprintln(os.Stderr, "please configure your API key by executing: 'mite config api.key=<your mite api key>'")
41
42
43
err = cmd.HandleCommands(c, api, v)
44
if err != nil {
45
_, _ = fmt.Fprintln(os.Stderr, err)
0 commit comments