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 d723498 commit 304281eCopy full SHA for 304281e
cmd/root.go
@@ -80,8 +80,9 @@ func initConfig() {
80
81
// If a config file is found, read it in.
82
if err := viper.ReadInConfig(); err != nil {
83
- logger.Errorf("Unable read from config: %s", err)
84
- os.Exit(1)
+ // Non-blocking, because some command does not require config file, ie: docgen.
+ logger.Warnf("Unable read from config: %s", err)
85
+ return
86
}
87
logger.Infof("Using config file: %s", viper.ConfigFileUsed())
88
0 commit comments