versioninfo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// GitBranch is the branch from which this binary was built
	GitBranch string
	// GitReleaseTag is the git tag from which this binary is released
	GitReleaseTag string
	// GitReleaseCommit is the commit corresponding to the GitReleaseTag
	GitReleaseCommit string
	// BuildTime is the time at which this binary was built
	BuildTime string
	// GitTreeState indicates if the git tree, from which this binary was built, was clean or dirty
	GitTreeState string
	// GitCommit is the git commit at which this binary binary was built
	GitCommit string
	// GitMajor is the major version of the release
	GitMajor string
	// GitMinor is the minor version of the release
	GitMinor string
)

Functions

func VersionCmd

func VersionCmd() *cobra.Command

VersionCmd is the version command for the binary

Types

This section is empty.

Jump to

Keyboard shortcuts

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