NewListCmd creates a new cobra command
(f factory.Factory, globalFlags *flags.GlobalFlags, plugins []plugin.Metadata)
| 9 | |
| 10 | // NewListCmd creates a new cobra command |
| 11 | func NewListCmd(f factory.Factory, globalFlags *flags.GlobalFlags, plugins []plugin.Metadata) *cobra.Command { |
| 12 | listCmd := &cobra.Command{ |
| 13 | Use: "list", |
| 14 | Short: "Lists configuration", |
| 15 | Long: ` |
| 16 | ####################################################### |
| 17 | #################### devspace list #################### |
| 18 | ####################################################### |
| 19 | `, |
| 20 | Args: cobra.NoArgs, |
| 21 | } |
| 22 | |
| 23 | listCmd.AddCommand(newSyncCmd(f, globalFlags)) |
| 24 | listCmd.AddCommand(newPortsCmd(f, globalFlags)) |
| 25 | listCmd.AddCommand(newProfilesCmd(f)) |
| 26 | listCmd.AddCommand(newVarsCmd(f, globalFlags)) |
| 27 | listCmd.AddCommand(newDeploymentsCmd(f, globalFlags)) |
| 28 | listCmd.AddCommand(newContextsCmd(f)) |
| 29 | listCmd.AddCommand(newPluginsCmd(f)) |
| 30 | listCmd.AddCommand(newCommandsCmd(f, globalFlags)) |
| 31 | listCmd.AddCommand(newNamespacesCmd(f, globalFlags)) |
| 32 | |
| 33 | // Add plugin commands |
| 34 | plugin.AddPluginCommands(listCmd, plugins, "list") |
| 35 | return listCmd |
| 36 | } |
no test coverage detected