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

Function newProfilesCmd

cmd/list/profiles.go:17–36  ·  view source on GitHub ↗
(f factory.Factory)

Source from the content-addressed store, hash-verified

15type profilesCmd struct{}
16
17func newProfilesCmd(f factory.Factory) *cobra.Command {
18 cmd := &profilesCmd{}
19
20 profilesCmd := &cobra.Command{
21 Use: "profiles",
22 Short: "Lists all DevSpace profiles",
23 Long: `
24#######################################################
25############## devspace list profiles #################
26#######################################################
27Lists all DevSpace configurations for this project
28#######################################################
29 `,
30 Args: cobra.NoArgs,
31 RunE: func(cobraCmd *cobra.Command, args []string) error {
32 return cmd.RunListProfiles(f, cobraCmd, args)
33 }}
34
35 return profilesCmd
36}
37
38// RunListProfiles runs the list profiles command logic
39func (cmd *profilesCmd) RunListProfiles(f factory.Factory, cobraCmd *cobra.Command, args []string) error {

Callers 1

NewListCmdFunction · 0.85

Calls 1

RunListProfilesMethod · 0.95

Tested by

no test coverage detected