MCPcopy Create free account
hub / github.com/devspace-sh/devspace / newImagesCmd

Function newImagesCmd

cmd/cleanup/images.go:21–40  ·  view source on GitHub ↗
(f factory.Factory, globalFlags *flags.GlobalFlags)

Source from the content-addressed store, hash-verified

19}
20
21func 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#######################################################
31Deletes 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
43func (cmd *imagesCmd) RunCleanupImages(f factory.Factory, cobraCmd *cobra.Command, args []string) error {

Callers 1

NewCleanupCmdFunction · 0.85

Calls 1

RunCleanupImagesMethod · 0.95

Tested by

no test coverage detected