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:
Victor Lacasse-Beaudoin 2023-10-08 01:37:06 -04:00
parent 75b0819ae4
commit 679b594c80
4 changed files with 47 additions and 76 deletions

View file

@ -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)
}
}