mirror of
https://github.com/containers/podman.git
synced 2025-09-10 12:32:21 +08:00
Fix documentation of the --format option of podman push
It affects all transports; and without --format, we try several manifest formats. [NO TESTS NEEDED] Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
@ -96,7 +96,7 @@ func pushFlags(cmd *cobra.Command) {
|
|||||||
_ = cmd.RegisterFlagCompletionFunc(digestfileFlagName, completion.AutocompleteDefault)
|
_ = cmd.RegisterFlagCompletionFunc(digestfileFlagName, completion.AutocompleteDefault)
|
||||||
|
|
||||||
formatFlagName := "format"
|
formatFlagName := "format"
|
||||||
flags.StringVarP(&pushOptions.Format, formatFlagName, "f", "", "Manifest type (oci, v2s2, or v2s1) to use when pushing an image using the 'dir' transport (default is manifest type of source)")
|
flags.StringVarP(&pushOptions.Format, formatFlagName, "f", "", "Manifest type (oci, v2s2, or v2s1) to use in the destination (default is manifest type of source, with fallbacks)")
|
||||||
_ = cmd.RegisterFlagCompletionFunc(formatFlagName, common.AutocompleteManifestFormat)
|
_ = cmd.RegisterFlagCompletionFunc(formatFlagName, common.AutocompleteManifestFormat)
|
||||||
|
|
||||||
flags.BoolVarP(&pushOptions.Quiet, "quiet", "q", false, "Suppress output information when pushing images")
|
flags.BoolVarP(&pushOptions.Quiet, "quiet", "q", false, "Suppress output information when pushing images")
|
||||||
|
@ -184,7 +184,7 @@ type ImagePushOptions struct {
|
|||||||
// image to the file. Ignored for remote calls.
|
// image to the file. Ignored for remote calls.
|
||||||
DigestFile string
|
DigestFile string
|
||||||
// Format is the Manifest type (oci, v2s1, or v2s2) to use when pushing an
|
// Format is the Manifest type (oci, v2s1, or v2s2) to use when pushing an
|
||||||
// image using the 'dir' transport. Default is manifest type of source.
|
// image. Default is manifest type of source, with fallbacks.
|
||||||
// Ignored for remote calls.
|
// Ignored for remote calls.
|
||||||
Format string
|
Format string
|
||||||
// Quiet can be specified to suppress pull progress when pulling. Ignored
|
// Quiet can be specified to suppress pull progress when pulling. Ignored
|
||||||
|
Reference in New Issue
Block a user