MCPcopy Create free account
hub / github.com/docker/cli / newManifestCommand

Function newManifestCommand

cli/command/manifest/cmd.go:18–39  ·  view source on GitHub ↗

newManifestCommand returns a cobra command for `manifest` subcommands

(dockerCLI command.Cli)

Source from the content-addressed store, hash-verified

16
17// newManifestCommand returns a cobra command for `manifest` subcommands
18func newManifestCommand(dockerCLI command.Cli) *cobra.Command {
19 // use dockerCli as command.Cli
20 cmd := &cobra.Command{
21 Use: "manifest COMMAND",
22 Short: "Manage Docker image manifests and manifest lists",
23 Long: manifestDescription,
24 Args: cli.NoArgs,
25 Run: func(cmd *cobra.Command, args []string) {
26 _, _ = fmt.Fprint(dockerCLI.Err(), "\n"+cmd.UsageString())
27 },
28 Annotations: map[string]string{"experimentalCLI": ""},
29 DisableFlagsInUseLine: true,
30 }
31 cmd.AddCommand(
32 newCreateListCommand(dockerCLI),
33 newInspectCommand(dockerCLI),
34 newAnnotateCommand(dockerCLI),
35 newPushListCommand(dockerCLI),
36 newRmManifestListCommand(dockerCLI),
37 )
38 return cmd
39}
40
41var manifestDescription = `
42The **docker manifest** command has subcommands for managing image manifests and

Callers

nothing calls this directly

Calls 6

newCreateListCommandFunction · 0.85
newAnnotateCommandFunction · 0.85
newPushListCommandFunction · 0.85
newRmManifestListCommandFunction · 0.85
newInspectCommandFunction · 0.70
ErrMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…