cmd

package
v0.31.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: AGPL-3.0 Imports: 59 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTagEmptyName   = errors.New("Invalid tag, empty name")
	ErrTagEmptyValue  = errors.New("Invalid tag, empty value")
	ErrTagEmptyString = errors.New("Invalid tag, empty string")
)
View Source
var BannerColor = color.New(color.FgCyan)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Config

type Config struct {
	lib.Options

	Out           []string  `json:"out" envconfig:"K6_OUT"`
	Linger        null.Bool `json:"linger" envconfig:"K6_LINGER"`
	NoUsageReport null.Bool `json:"noUsageReport" envconfig:"K6_NO_USAGE_REPORT"`

	// TODO: deprecate
	Collectors map[string]json.RawMessage `json:"collectors"`
}

func (Config) Apply

func (c Config) Apply(cfg Config) Config

func (Config) Validate added in v0.27.0

func (c Config) Validate() []error

Validate checks if all of the specified options make sense

type ExitCode

type ExitCode struct {
	Code int
	Hint string
	// contains filtered or unexported fields
}

ExitCode wraps the error with an exit code. Hint is used to show details information about underlying error.

type RawFormatter added in v0.28.0

type RawFormatter struct{}

RawFormatter it does nothing with the message just prints it

func (RawFormatter) Format added in v0.28.0

func (f RawFormatter) Format(entry *logrus.Entry) ([]byte, error)

Format renders a single log entry

Jump to

Keyboard shortcuts

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