version

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "dev"
	GitCommit = "none"
	BuildDate = "unknown"
)

Functions

func NewCommand

func NewCommand(versionInfo VersionInfo) *cobra.Command

NewCommand creates a new comamnd that prints information about the application version, including the git commit, build date and go runtime version.

Types

type VersionInfo

type VersionInfo struct {
	Version   string
	GitCommit string
	BuildDate string
	GoVersion string
}

VersionInfo stores information about the application version

Jump to

Keyboard shortcuts

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