version

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: Apache-2.0 Imports: 4 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 = "1.0.0-SNAPSHOT"
)

Variables

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

Build information. Populated at build-time.

Functions

func GetVersion

func GetVersion() string

Types

type VersionOptions

type VersionOptions struct {
	Verbose bool
}

ShowOptions the options for viewing running PRs

func NewCmdVersion

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

NewCmdVersion creates a command object for the "version" command

func (*VersionOptions) Run

func (o *VersionOptions) Run() error

Run implements the command

Jump to

Keyboard shortcuts

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