app

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 64 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Output of "git describe". The prerequisite is that the branch should be
	// tagged using the correct versioning strategy.
	GitVersion string = "devel"
)

Base version information.

This is the fallback data used when version information from git is not provided via go ldflags (e.g. via Makefile).

Functions

func CreatePropsFromPflags added in v0.3.0

func CreatePropsFromPflags() *types.ArtifactProperties

func Execute

func Execute()

Execute runs the base CLI

func NewFlagValue added in v0.3.0

func NewFlagValue(flagType FlagType, defaultVal string) pflag.Value

NewFlagValue creates a new pflag.Value for the specified type with the specified default value. If a default value is not desired, pass "" for defaultVal.

func ParseTypeFlag added in v0.3.0

func ParseTypeFlag(typeStr string) (string, string, error)

TODO: add tests for this

Types

type FlagType added in v0.3.0

type FlagType string

type Info

type Info struct {
	GitVersion   string
	GitCommit    string
	GitTreeState string
	BuildDate    string
	GoVersion    string
	Compiler     string
	Platform     string
}

func VersionInfo

func VersionInfo() Info

func (*Info) JSONString

func (i *Info) JSONString() (string, error)

JSONString returns the JSON representation of the version info

func (*Info) String

func (i *Info) String() string

String returns the string representation of the version info

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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