Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
()
| 23 | // Execute adds all child commands to the root command and sets flags appropriately. |
| 24 | // This is called by main.main(). It only needs to happen once to the rootCmd. |
| 25 | func Execute() { |
| 26 | err := rootCmd.Execute() |
| 27 | if err != nil { |
| 28 | os.Exit(1) |
| 29 | } |
| 30 | } |