NewResetCmd creates a new cobra command
(f factory.Factory, globalFlags *flags.GlobalFlags, plugins []plugin.Metadata)
| 9 | |
| 10 | // NewResetCmd creates a new cobra command |
| 11 | func NewResetCmd(f factory.Factory, globalFlags *flags.GlobalFlags, plugins []plugin.Metadata) *cobra.Command { |
| 12 | resetCmd := &cobra.Command{ |
| 13 | Use: "reset", |
| 14 | Short: "Resets an cluster token", |
| 15 | Long: ` |
| 16 | ####################################################### |
| 17 | ################## devspace reset ##################### |
| 18 | ####################################################### |
| 19 | `, |
| 20 | Args: cobra.NoArgs, |
| 21 | } |
| 22 | |
| 23 | resetCmd.AddCommand(newVarsCmd(f, globalFlags)) |
| 24 | resetCmd.AddCommand(newDependenciesCmd(f)) |
| 25 | resetCmd.AddCommand(newPodsCmd(f, globalFlags)) |
| 26 | |
| 27 | // Add plugin commands |
| 28 | plugin.AddPluginCommands(resetCmd, plugins, "reset") |
| 29 | return resetCmd |
| 30 | } |
no test coverage detected