| 12 | } |
| 13 | |
| 14 | func newPluginsCmd(f factory.Factory) *cobra.Command { |
| 15 | cmd := &pluginsCmd{} |
| 16 | pluginCmd := &cobra.Command{ |
| 17 | Use: "plugins", |
| 18 | Short: "Lists all installed devspace plugins", |
| 19 | Long: ` |
| 20 | ####################################################### |
| 21 | ############# devspace list plugins ################## |
| 22 | ####################################################### |
| 23 | Lists all installed plugins |
| 24 | |
| 25 | devspace list plugins |
| 26 | ####################################################### |
| 27 | `, |
| 28 | Args: cobra.NoArgs, |
| 29 | RunE: func(cobraCmd *cobra.Command, args []string) error { |
| 30 | return cmd.Run(f, cobraCmd, args) |
| 31 | }} |
| 32 | |
| 33 | return pluginCmd |
| 34 | } |
| 35 | |
| 36 | // Run executes the command logic |
| 37 | func (cmd *pluginsCmd) Run(f factory.Factory, cobraCmd *cobra.Command, args []string) error { |