mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-14 04:39:33 +00:00
The podman module paths are moving from github.com/containers/podman to go.podman.io/podman. This will help with future mobility. Signed-off-by: Brent Baude <bbaude@redhat.com>
14 lines
364 B
Go
14 lines
364 B
Go
package validate
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
"go.podman.io/podman/v6/cmd/podman/registry"
|
|
)
|
|
|
|
func AddLatestFlag(cmd *cobra.Command, b *bool) {
|
|
// Initialization flag verification
|
|
if !registry.IsRemote() {
|
|
cmd.Flags().BoolVarP(b, "latest", "l", false,
|
|
"Act on the latest container podman is aware of\nNot supported with the \"--remote\" flag")
|
|
}
|
|
}
|