version

package
v0.0.204 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 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 Options

type Options struct {
	Verbose bool
}

ShowOptions the options for viewing running PRs

func NewCmdVersion

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

NewCmdVersion creates a command object for the "version" command

func (*Options) Run

func (o *Options) Run() error

Run implements the command

Jump to

Keyboard shortcuts

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