version

package
v0.17.1-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 5 Imported by: 66

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultVersionFormat = printer.FormatPlaintext
View Source
var GetExecutable = os.Executable

Functions

func PrintVersion

func PrintVersion(cxt *context.Context, opts Options, metadata mixin.Metadata) error

PrintVersion prints the version based on the version flags using the binary's metadata. Suitable for any mixin to use to implement its version command.

Types

type Options

type Options struct {
	printer.PrintOptions
}

VersionOptions represent generic options for use by version commands

func (*Options) Validate

func (o *Options) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL