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

Function newRmManifestListCommand

cli/command/manifest/rm.go:13–25  ·  view source on GitHub ↗
(dockerCLI command.Cli)

Source from the content-addressed store, hash-verified

11)
12
13func newRmManifestListCommand(dockerCLI command.Cli) *cobra.Command {
14 cmd := &cobra.Command{
15 Use: "rm MANIFEST_LIST [MANIFEST_LIST...]",
16 Short: "Delete one or more manifest lists from local storage",
17 Args: cli.RequiresMinArgs(1),
18 RunE: func(cmd *cobra.Command, args []string) error {
19 return runRemove(cmd.Context(), newManifestStore(dockerCLI), args)
20 },
21 DisableFlagsInUseLine: true,
22 }
23
24 return cmd
25}
26
27func runRemove(ctx context.Context, store manifeststore.Store, targets []string) error {
28 var errs []error

Callers 3

newManifestCommandFunction · 0.85
TestRmSeveralManifestsFunction · 0.85
TestRmManifestNotCreatedFunction · 0.85

Calls 2

newManifestStoreFunction · 0.85
runRemoveFunction · 0.70

Tested by 2

TestRmSeveralManifestsFunction · 0.68
TestRmManifestNotCreatedFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…