MCPcopy Index your code
hub / github.com/docker/cli / newImageCommand

Function newImageCommand

cli/command/image/cmd.go:25–49  ·  view source on GitHub ↗

newImageCommand returns a cobra command for `image` subcommands

(dockerCli command.Cli)

Source from the content-addressed store, hash-verified

23
24// newImageCommand returns a cobra command for `image` subcommands
25func newImageCommand(dockerCli command.Cli) *cobra.Command {
26 cmd := &cobra.Command{
27 Use: "image",
28 Short: "Manage images",
29 Args: cli.NoArgs,
30 RunE: command.ShowHelp(dockerCli.Err()),
31
32 DisableFlagsInUseLine: true,
33 }
34 cmd.AddCommand(
35 newBuildCommand(dockerCli),
36 newHistoryCommand(dockerCli),
37 newImportCommand(dockerCli),
38 newLoadCommand(dockerCli),
39 newPullCommand(dockerCli),
40 newPushCommand(dockerCli),
41 newSaveCommand(dockerCli),
42 newTagCommand(dockerCli),
43 newListCommand(dockerCli),
44 newImageRemoveCommand(dockerCli),
45 newInspectCommand(dockerCli),
46 newPruneCommand(dockerCli),
47 )
48 return cmd
49}

Callers

nothing calls this directly

Calls 13

newBuildCommandFunction · 0.85
newHistoryCommandFunction · 0.85
newLoadCommandFunction · 0.85
newPullCommandFunction · 0.85
newSaveCommandFunction · 0.85
newTagCommandFunction · 0.85
newImageRemoveCommandFunction · 0.85
newImportCommandFunction · 0.70
newPushCommandFunction · 0.70
newListCommandFunction · 0.70
newInspectCommandFunction · 0.70
newPruneCommandFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…