(f factory.Factory)
| 15 | type profilesCmd struct{} |
| 16 | |
| 17 | func 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 | ####################################################### |
| 27 | Lists 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 |
| 39 | func (cmd *profilesCmd) RunListProfiles(f factory.Factory, cobraCmd *cobra.Command, args []string) error { |
no test coverage detected