spiegel_podman/cmd/podman/validate/latest.go
Brent Baude 2cc3be7332
RUN-4539: Change podman module paths
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>
2026-04-22 14:02:25 -05:00

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")
}
}