mirror of
https://github.com/spf13/cobra
synced 2024-12-28 23:37:09 +00:00
Update README.md
This commit is contained in:
parent
99ff9334bd
commit
d7cfb13474
1 changed files with 5 additions and 1 deletions
|
@ -323,6 +323,10 @@ func init() {
|
|||
viper.SetDefault("license", "apache")
|
||||
}
|
||||
|
||||
func Execute() {
|
||||
rootCmd.Execute()
|
||||
}
|
||||
|
||||
func main() {
|
||||
// Don't forget to read config either from cfgFile or from home directory!
|
||||
if cfgFile != "" {
|
||||
|
@ -343,7 +347,7 @@ func main() {
|
|||
|
||||
if err := viper.ReadInConfig(); err != nil {
|
||||
fmt.Println("Can't read config:", err)
|
||||
os.Exit(1)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue