(f factory.Factory, globalFlags *flags.GlobalFlags)
| 19 | } |
| 20 | |
| 21 | func newImagesCmd(f factory.Factory, globalFlags *flags.GlobalFlags) *cobra.Command { |
| 22 | cmd := &imagesCmd{GlobalFlags: globalFlags} |
| 23 | |
| 24 | imagesCmd := &cobra.Command{ |
| 25 | Use: "images", |
| 26 | Short: "Deletes all locally created images from docker", |
| 27 | Long: ` |
| 28 | ####################################################### |
| 29 | ############# devspace cleanup images ################# |
| 30 | ####################################################### |
| 31 | Deletes all locally created docker images from docker |
| 32 | ####################################################### |
| 33 | `, |
| 34 | Args: cobra.NoArgs, |
| 35 | RunE: func(cobraCmd *cobra.Command, args []string) error { |
| 36 | return cmd.RunCleanupImages(f, cobraCmd, args) |
| 37 | }} |
| 38 | |
| 39 | return imagesCmd |
| 40 | } |
| 41 | |
| 42 | // RunCleanupImages executes the cleanup images command logic |
| 43 | func (cmd *imagesCmd) RunCleanupImages(f factory.Factory, cobraCmd *cobra.Command, args []string) error { |
no test coverage detected