app

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 61 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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