kubernetes/staging/src/k8s.io/component-base/version/verflag/verflag.go

type versionValue

const VersionFalse

const VersionTrue

const VersionRaw

const strRawVersion

func (v *versionValue) IsBoolFlag() bool {}

func (v *versionValue) Get() interface{}

func (v *versionValue) Set(s string) error {}

func (v *versionValue) String() string {}

// The type of the flag as required by the pflag.Value interface
func (v *versionValue) Type() string {}

func VersionVar(p *versionValue, name string, value versionValue, usage string) {}

func Version(name string, value versionValue, usage string) *versionValue {}

const versionFlagName

var versionFlag

var programName

// AddFlags registers this package's flags on arbitrary FlagSets, such that they point to the
// same value as the global flags.
func AddFlags(fs *flag.FlagSet) {}

var output

var exit

// PrintAndExitIfRequested will check if --version or --version=raw was passed
// and, if so, print the version and exit.
func PrintAndExitIfRequested() {}