version

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// TestVersion used in test cases for the current version if no
	// version can be found - such as if the version property is not properly
	// included in the go test flags.
	TestVersion = "3.2.238"

	// TestRevision can be used in tests if no revision is passed in the test flags
	TestRevision = "04b628f48"

	// TestBranch can be used in tests if no tree state is passed in the test flags
	TestBranch = "main"

	// TestTreeState can be used in tests if no tree state is passed in the test flags
	TestTreeState = "clean"

	// TestBuildDate can be used in tests if no build date is passed in the test flags
	TestBuildDate = "2022-05-31T14:51:38Z"

	// TestGoVersion can be used in tests if no version is passed in the test flags
	TestGoVersion = "1.17.8"
)

Variables

View Source
var (
	Version      string
	Revision     string
	BuildDate    string
	GoVersion    string
	Branch       string
	GitTreeState string
)

Build information. Populated at build-time.

Functions

func GetSemverVersion

func GetSemverVersion() (semver.Version, error)

Types

type Options

type Options struct {
	Verbose bool
	Quiet   bool
	Short   bool
	Out     io.Writer
}

ShowOptions the options for viewing running PRs

func NewCmdVersion

func NewCmdVersion() (*cobra.Command, *Options)

NewCmdVersion creates a command object for the "version" command

Jump to

Keyboard shortcuts

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