(f factory.Factory, globalFlags *flags.GlobalFlags)
| 22 | } |
| 23 | |
| 24 | func newLocalRegistryCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command { |
| 25 | cmd := &localRegistryCmd{GlobalFlags: globalFlags} |
| 26 | |
| 27 | localRegistryCmd := &cobra.Command{ |
| 28 | Use: "local-registry", |
| 29 | Short: "Deletes the local image registry", |
| 30 | Long: ` |
| 31 | ####################################################### |
| 32 | ######### devspace cleanup local-registry ############# |
| 33 | ####################################################### |
| 34 | Deletes the local image registry |
| 35 | ####################################################### |
| 36 | `, |
| 37 | Args: cobra.NoArgs, |
| 38 | RunE: func(cobraCmd *cobra.Command, args []string) error { |
| 39 | return cmd.RunCleanupLocalRegistry(f, cobraCmd, args) |
| 40 | }} |
| 41 | |
| 42 | return localRegistryCmd |
| 43 | } |
| 44 | |
| 45 | // RunCleanupLocalRegistry executes the cleanup local-registry command logic |
| 46 | func (cmd *localRegistryCmd) RunCleanupLocalRegistry(f factory.Factory, cobraCmd *cobra.Command, args []string) error { |
no test coverage detected