diff --git a/internal/commands/commands.go b/internal/commands/commands.go index f8b7dc8..c8ec07e 100644 --- a/internal/commands/commands.go +++ b/internal/commands/commands.go @@ -63,7 +63,8 @@ func initConfig() { viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_")) viper.AutomaticEnv() - if err := viper.ReadInConfig(); err != nil { + err := viper.ReadInConfig() + if _, ok := err.(viper.ConfigFileNotFoundError); !ok { panic(err) } }