MCPcopy
hub / github.com/genuinetools/img / newRemoveCommand

Function newRemoveCommand

remove.go:17–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15const removeUsageLongHelp = `Remove one or more images.`
16
17func newRemoveCommand() *cobra.Command {
18
19 remove := &removeCommand{}
20
21 cmd := &cobra.Command{
22 Use: "rm [OPTIONS] IMAGE [IMAGE...]",
23 DisableFlagsInUseLine: true,
24 SilenceUsage: true,
25 Short: removeUsageShortHelp,
26 Long: removeUsageLongHelp,
27 Args: remove.ValidateArgs,
28 RunE: func(cmd *cobra.Command, args []string) error {
29 return remove.Run(args)
30 },
31 }
32
33 return cmd
34}
35
36type removeCommand struct{}
37

Callers 1

mainFunction · 0.85

Calls 1

RunMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…