(f factory.Factory)
| 10 | } |
| 11 | |
| 12 | func newPluginCmd(f factory.Factory) *cobra.Command { |
| 13 | cmd := &pluginCmd{} |
| 14 | pluginCmd := &cobra.Command{ |
| 15 | Use: "plugin", |
| 16 | Short: "Removes a devspace plugin", |
| 17 | Long: ` |
| 18 | ####################################################### |
| 19 | ############# devspace remove plugin ################## |
| 20 | ####################################################### |
| 21 | Removes a plugin |
| 22 | |
| 23 | devspace remove plugin my-plugin |
| 24 | ####################################################### |
| 25 | `, |
| 26 | Args: cobra.ExactArgs(1), |
| 27 | RunE: func(cobraCmd *cobra.Command, args []string) error { |
| 28 | plugin.SetPluginCommand(cobraCmd, args) |
| 29 | return cmd.Run(f, cobraCmd, args) |
| 30 | }} |
| 31 | |
| 32 | return pluginCmd |
| 33 | } |
| 34 | |
| 35 | // Run executes the command logic |
| 36 | func (cmd *pluginCmd) Run(f factory.Factory, cobraCmd *cobra.Command, args []string) error { |
no test coverage detected