cobra-cli init
Use cobra-cli add.
- main.go: cmd.Execute
- cmd/root.go: rootCmd.Execute
- cobra/command.go: ExecuteC
- ExecuteC runs prehooks, posthook, parent cmd, child cmd checks then cmd.execute
- execute parses options, preRun, postRun and Run.
https://github.com/spf13/viper