MCPcopy Index your code
hub / github.com/devspace-sh/devspace / newPluginsCmd

Function newPluginsCmd

cmd/list/plugins.go:14–34  ·  view source on GitHub ↗
(f factory.Factory)

Source from the content-addressed store, hash-verified

12}
13
14func 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#######################################################
23Lists all installed plugins
24
25devspace 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
37func (cmd *pluginsCmd) Run(f factory.Factory, cobraCmd *cobra.Command, args []string) error {

Callers 1

NewListCmdFunction · 0.85

Calls 1

RunMethod · 0.95

Tested by

no test coverage detected