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.
2 parents f391cc1 + 8f131b3 commit 1a20421Copy full SHA for 1a20421
1 file changed
cmd/debug.go
@@ -64,10 +64,14 @@ func Debug(ctx *cli.Context) {
64
65
if configured {
66
fmt.Printf("Config file: %s\n", c.File)
67
- fmt.Printf("API Key: %s\n", c.APIKey)
+ if c.APIKey != "" {
68
+ fmt.Printf("API Key: %s\n", c.APIKey)
69
+ } else {
70
+ fmt.Println("API Key: Please set your API Key to access all of the CLI features")
71
+ }
72
} else {
73
fmt.Println("Config file: <not configured>")
- fmt.Println("API Key: <not configured>")
74
75
}
76
fmt.Printf("Exercises Directory: %s\n", c.Dir)
77
0 commit comments