Viper doesn't load the config as the subcommand init functions are called before initializeConfig is called. So during initialization, the Conf variable is empty, and all flag commands which use Conf.{field} as a flag default value will just have their zero-value passed to the flag. I;m handling this by checking if the user didn't change the flag and then manually assigning the default but need to find a better way to do this.
Viper doesn't load the config as the subcommand
initfunctions are called beforeinitializeConfigis called. So during initialization, theConfvariable is empty, and all flag commands which useConf.{field}as a flag default value will just have their zero-value passed to the flag. I;m handling this by checking if the user didn't change the flag and then manually assigning the default but need to find a better way to do this.