changeset 125 | d436b88d137b |
parent 91 | 02312ccc1fd3 |
child 135 | 55b4a119c7c6 |
--- a/cmd/root.go Thu May 11 23:57:17 2017 +0200 +++ b/cmd/root.go Fri May 12 00:09:04 2017 +0200 @@ -169,6 +169,9 @@ // initConfig reads in config file and ENV variables if set. func initConfig() { + if cfgFile == "/dev/null" { + return + } if cfgFile != "" { // enable ability to specify config file via flag viper.SetConfigFile(cfgFile) }