cmd

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: AGPL-3.0 Imports: 59 Imported by: 0

Documentation

Overview

Package cmd the package implementing all of cli interface of k6

Index

Constants

This section is empty.

Variables

This section is empty.

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"`
}

Config ...

func (Config) Apply

func (c Config) Apply(cfg Config) Config

Apply the provided config on top of the current one, returning a new one. The provided config has priority.

func (Config) Validate

func (c Config) Validate() []error

Validate checks if all of the specified options make sense

type RawFormatter

type RawFormatter struct{}

RawFormatter it does nothing with the message just prints it

func (RawFormatter) Format

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

Format renders a single log entry

Directories

Path Synopsis
integration_tests
testmodules/events
Package events implements setInterval, setTimeout and co.
Package events implements setInterval, setTimeout and co.

Jump to

Keyboard shortcuts

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