mirror of
https://github.com/containers/podman.git
synced 2025-10-25 02:04:43 +08:00
Merge pull request #16466 from rhatdan/manifest1
Allow podman manifest push --purge|-p as alias for --rm
This commit is contained in:
@ -47,6 +47,8 @@ func init() {
|
||||
flags := pushCmd.Flags()
|
||||
flags.BoolVar(&manifestPushOpts.Rm, "rm", false, "remove the manifest list if push succeeds")
|
||||
flags.BoolVar(&manifestPushOpts.All, "all", true, "also push the images in the list")
|
||||
flags.BoolVarP(&manifestPushOpts.Rm, "purge", "p", false, "remove the local manifest list after push")
|
||||
_ = flags.MarkHidden("purge")
|
||||
|
||||
authfileFlagName := "authfile"
|
||||
flags.StringVar(&manifestPushOpts.Authfile, authfileFlagName, auth.GetDefaultAuthFile(), "path of the authentication file. Use REGISTRY_AUTH_FILE environment variable to override")
|
||||
|
||||
@ -23,8 +23,6 @@ func AliasFlags(f *pflag.FlagSet, name string) pflag.NormalizedName {
|
||||
name = "ns"
|
||||
case "storage":
|
||||
name = "external"
|
||||
case "purge":
|
||||
name = "rm"
|
||||
case "notruncate":
|
||||
name = "no-trunc"
|
||||
case "override-arch":
|
||||
|
||||
Reference in New Issue
Block a user