Skip to content

Commit

Permalink
Fix config loading
Browse files Browse the repository at this point in the history
  • Loading branch information
hooksie1 committed Aug 12, 2022
1 parent 6e4ba0e commit 0d07d2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func init() {
// will be global for your application.

rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "./piggybank.cue", "config file")
initConfig()
cobra.OnInitialize(initConfig)
}

// initConfig reads in config file and ENV variables if set.
Expand Down

0 comments on commit 0d07d2f

Please sign in to comment.