@@ -118,7 +118,7 @@ func Execute() {
118118 }
119119
120120 // un-comment the following to auto-generate documentation
121- // generateDocumentation()
121+ // generateDocumentation()
122122
123123}
124124
@@ -135,21 +135,22 @@ func generateDocumentation() {
135135}
136136
137137func init () {
138+
138139 cobra .OnInitialize (initConfig )
139140
140141 // Here you will define your flags and configuration settings.
141142 // Cobra supports persistent flags, which, if defined here,
142143 // will be global for your application.
143144
144- rootCmd .PersistentFlags ().StringVar (& cfgFile , "config" , "" , "config file (default is $HOME/.nhost.yaml)" )
145+ // rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.nhost.yaml)")
145146
146147 rootCmd .PersistentFlags ().BoolVarP (& logger .JSON , "json" , "j" , false , "Print JSON formatted logs" )
147148 rootCmd .PersistentFlags ().StringVar (& nhost .API , "endpoint" , "https://nuno.nhost.dev/v1/functions" , "Auth endpoint - for internal testing" )
148149 //rootCmd.PersistentFlags().StringVarP(&userLicense, "license", "l", "", "name of license for the project")
149150 //rootCmd.PersistentFlags().Bool("viper", true, "use Viper for configuration")
150151 //viper.BindPFlag("author", rootCmd.PersistentFlags().Lookup("author"))
151152 //viper.BindPFlag("useViper", rootCmd.PersistentFlags().Lookup("viper"))
152- viper .SetDefault ("author" , "Mrinal Wahal mrinalwahal@gmail.com " )
153+ viper .SetDefault ("author" , "Mrinal Wahal wahal@nhost.io " )
153154 viper .SetDefault ("license" , "MIT" )
154155
155156 //rootCmd.AddCommand(versionCmd)
0 commit comments