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