(rootCmd *cobra.Command, cli *cli)
| 150 | } |
| 151 | |
| 152 | func addPersistentFlags(rootCmd *cobra.Command, cli *cli) { |
| 153 | rootCmd.PersistentFlags().StringVar(&cli.tenant, |
| 154 | "tenant", cli.Config.DefaultTenant, "Specific tenant to use.") |
| 155 | |
| 156 | rootCmd.PersistentFlags().BoolVar(&cli.debug, |
| 157 | "debug", false, "Enable debug mode.") |
| 158 | |
| 159 | rootCmd.PersistentFlags().BoolVar(&cli.noInput, |
| 160 | "no-input", false, "Disable interactivity.") |
| 161 | |
| 162 | rootCmd.PersistentFlags().BoolVar(&cli.noColor, |
| 163 | "no-color", false, "Disable colors.") |
| 164 | } |
| 165 | |
| 166 | func addSubCommands(rootCmd *cobra.Command, cli *cli) { |
| 167 | // The order of the commands here matters. |
no outgoing calls
no test coverage detected