mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-23 08:47:50 +00:00
We missed bumping the go module, so let's do it now :) * Automated go code with github.com/sirkon/go-imports-rename * Manually via `vgrep podman/v2` the rest Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
14 lines
373 B
Go
14 lines
373 B
Go
package validate
|
|
|
|
import (
|
|
"github.com/containers/podman/v3/cmd/podman/registry"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
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")
|
|
}
|
|
}
|