Migrate config to codeberg.org/vlbeaudoin/serpents v1.0.0
Raw cobra+viper flags that were not yet migrated to Register* functions now migrated to serpents as well
This commit is contained in:
parent
75b0819ae4
commit
679b594c80
4 changed files with 47 additions and 76 deletions
|
@ -31,7 +31,7 @@ func init() {
|
|||
|
||||
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.bottin-ag.yaml)")
|
||||
|
||||
if err := config.RegisterFlags(rootCmd); err != nil {
|
||||
if err := config.RegisterFlags(rootCmd.PersistentFlags()); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue