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

Function newLocalRegistryCmd

cmd/cleanup/local_registry.go:24–43  ·  view source on GitHub ↗
(f factory.Factory, globalFlags *flags.GlobalFlags)

Source from the content-addressed store, hash-verified

22}
23
24func 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#######################################################
34Deletes 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
46func (cmd *localRegistryCmd) RunCleanupLocalRegistry(f factory.Factory, cobraCmd *cobra.Command, args []string) error {

Callers 1

NewCleanupCmdFunction · 0.85

Calls 1

Tested by

no test coverage detected