We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 824e813 commit 115c0bcCopy full SHA for 115c0bc
1 file changed
cmd/root.go
@@ -73,6 +73,11 @@ We take care while you do what you do best.`,
73
// Extract project, token, endpoint
74
cfg.Path = cfgpaths[len(cfgpaths)-1]
75
globalConfiguration = cfg
76
+
77
+ // Warn if either project, token or endpoint is empty
78
+ if len(globalConfiguration.Token()) == 0 || len(globalConfiguration.Endpoint()) == 0 || len(globalConfiguration.Project()) == 0 {
79
+ fmt.Fprintln(os.Stderr, "Warning: Active context is invalid. Choose or configure a new context using the `valar config` command.")
80
+ }
81
return nil
82
},
83
}
0 commit comments