NewRemoveCmd creates a new cobra command
(f factory.Factory, globalFlags *flags.GlobalFlags, plugins []plugin.Metadata)
| 9 | |
| 10 | // NewRemoveCmd creates a new cobra command |
| 11 | func NewRemoveCmd(f factory.Factory, globalFlags *flags.GlobalFlags, plugins []plugin.Metadata) *cobra.Command { |
| 12 | removeCmd := &cobra.Command{ |
| 13 | Use: "remove", |
| 14 | Short: "Removes devspace configuration", |
| 15 | Long: ` |
| 16 | ####################################################### |
| 17 | ################## devspace remove #################### |
| 18 | ####################################################### |
| 19 | `, |
| 20 | Args: cobra.NoArgs, |
| 21 | } |
| 22 | |
| 23 | removeCmd.AddCommand(newContextCmd(f)) |
| 24 | removeCmd.AddCommand(newPluginCmd(f)) |
| 25 | |
| 26 | // Add plugin commands |
| 27 | plugin.AddPluginCommands(removeCmd, plugins, "remove") |
| 28 | return removeCmd |
| 29 | } |
no test coverage detected