version

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const UserAgent = "aws-sso"

User Agent name set in requests.

Variables

View Source
var (
	Version    = "development"
	BuildOS    = "not_set"
	BuildArch  = "not_set"
	BuildTime  = "not_set"
	GoVersion  = "not_set"
	CommitHash = "not_set"
	Flavor     = "default"
)

Main version number being run right now.

Functions

func GetTemplate

func GetTemplate() string

func PrintVersion

func PrintVersion(out io.Writer, cmd *cobra.Command) error

Prints the version to the provided io.Writer

func SemverString

func SemverString() string

Returns a semantic version compliant string

func String

func String() string

String prints the version of lnet

Types

type CommandVersion

type CommandVersion struct {
	Name       string
	Short      string
	Version    string
	BuildTime  string
	BuildArch  string
	BuildOS    string
	GoVersion  string
	CommitHash string
}

Jump to

Keyboard shortcuts

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