Skip to content
Snippets Groups Projects
Commit 2913a5ca authored by Fabian Seidl's avatar Fabian Seidl
Browse files

removed cobra on init to prevent function to get called every time

parent 9dca72b4
No related branches found
No related tags found
1 merge request!950Resolve "Fix setting passthrough and other things in cli/root in every cmd execute"
Pipeline #215429 passed
......@@ -81,7 +81,7 @@ func Execute() {
}
func init() {
cobra.OnInitialize(initConfig)
initConfig()
// add CLI global parameters
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (./.gosdnc.toml)")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment