(dockerCLI command.Cli)
| 11 | ) |
| 12 | |
| 13 | func 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 | |
| 27 | func runRemove(ctx context.Context, store manifeststore.Store, targets []string) error { |
| 28 | var errs []error |
searching dependent graphs…