version

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const None = "v0.0.0-unknown"

None is the AppVersion string for local (unversioned) builds.

Variables

View Source
var (
	// AppVersion is the semver for this version of the client, or
	// "v0.0.0-unknown". Set by `make release`.
	AppVersion string

	// GitRevision is the short git SHA associated with this build, or
	// "unknown". Set by `make release`.
	GitRevision string

	// GoVersion is the output of `go version` associated with this build, or
	// "go version unknown". Set by `make release`.
	GoVersion string

	// UserAgent is the user agent which we report in all HTTP requests to the
	// API via go-fastly.
	UserAgent string
)

Functions

func IsPreRelease added in v0.18.1

func IsPreRelease(version string) bool

IsPreRelease determines if the given app version is a pre-release.

NOTE: this is indicated by the presence of a hyphen, e.g. v1.0.0-rc.1

Types

type RootCommand

type RootCommand struct {
	common.Base
}

RootCommand is the parent command for all subcommands in this package. It should be installed under the primary root command.

func NewRootCommand

func NewRootCommand(parent common.Registerer) *RootCommand

NewRootCommand returns a new command registered in the parent.

func (*RootCommand) Exec

func (c *RootCommand) Exec(in io.Reader, out io.Writer) error

Exec implements the command interface.

Jump to

Keyboard shortcuts

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