Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions cmd/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,14 @@ func Debug(ctx *cli.Context) {

if configured {
fmt.Printf("Config file: %s\n", c.File)
fmt.Printf("API Key: %s\n", c.APIKey)
if c.APIKey != "" {
fmt.Printf("API Key: %s\n", c.APIKey)
} else {
fmt.Println("API Key: Please set your API Key to access all of the CLI features")
}
} else {
fmt.Println("Config file: <not configured>")
fmt.Println("API Key: <not configured>")
fmt.Println("API Key: Please set your API Key to access all of the CLI features")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's leave this with the <not configured> text as it's on the case where the CLI is not configured at all and it makes more sense.

}
fmt.Printf("Exercises Directory: %s\n", c.Dir)

Expand Down