fix undefined cfgFile in documentation

This commit is contained in:
Gregoire Mahe 2019-08-01 17:12:32 +02:00
parent 1c9c46d5c1
commit ccc8b0da4e

View file

@ -218,6 +218,8 @@ import (
"github.com/spf13/viper"
)
var cfgFile string
func init() {
cobra.OnInitialize(initConfig)
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.cobra.yaml)")