flags

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flags

type Flags struct {
	Debug           bool     `usage:"debug"`
	DebugOnFailure  bool     `usage:"debug failed steps"`
	Long            bool     `usage:"long format"`
	FailFast        bool     `usage:"fail fast"`
	SkipTest        bool     `usage:"skip \"test:\" section"`
	SkipIncluded    bool     `usage:"skip running the included runbook by itself"`
	RunMatch        string   `` /* 127-byte string literal not displayed */
	RunIDs          []string `usage:"run the matching runbooks in order if there is only one runbook with a forward matching ID"`
	RunLabels       []string `usage:"run all runbooks matching the label specification"`
	HTTPOpenApi3s   []string `usage:"set the path to the OpenAPI v3 document for HTTP runners (\"path/to/spec.yml\" or \"key:path/to/spec.yml\")"`
	GRPCNoTLS       bool     `usage:"disable TLS use in all gRPC runners"`
	GRPCProtos      []string `usage:"set the name of proto source for gRPC runners"`
	GRPCImportPaths []string `usage:"set the path to the directory where proto sources can be imported for gRPC runners"`
	GRPCBufDirs     []string `usage:"set the path to the buf directory for gRPC runners"`
	GRPCBufLocks    []string `usage:"set the path to buf.lock for gRPC runners"`
	GRPCBufConfigs  []string `usage:"set the path to buf.yaml for gRPC runners"`
	GRPCBufModules  []string `` /* 133-byte string literal not displayed */
	CaptureDir      string   `usage:"destination of runbook run capture results"`
	Vars            []string `usage:"set var to runbook (\"key:value\")"`
	Runners         []string `usage:"set runner to runbook (\"key:dsn\")"`
	Overlays        []string `usage:"overlay values on the runbook"`
	Underlays       []string `usage:"lay values under the runbook"`
	Sample          int      `usage:"sample the specified number of runbooks"`
	Shuffle         string   `usage:"randomize the order of running runbooks (\"on\",\"off\",N)"`
	Concurrent      string   `usage:"run runbooks concurrently (\"on\",\"off\",N)"`
	ShardIndex      int      `usage:"index of distributed runbooks"`
	ShardN          int      `usage:"number of shards for distributing runbooks"`
	Random          int      `usage:"run the specified number of runbooks at random"`
	Desc            string   `usage:"description of runbook"`
	Out             string   `usage:"target path of runbook"`
	Format          string   `usage:"format of result output"`
	AndRun          bool     `usage:"run created runbook and capture the response for test"`
	LoadTConcurrent int      `usage:"number of concurrent load test runs. 0 means unlimited"`
	LoadTDuration   string   `usage:"load test running duration"`
	LoadTWarmUp     string   `usage:"warn-up time for load test"`
	LoadTThreshold  string   `usage:"if this threshold condition is not met, loadt command returns exit status 1 (EXIT_FAILURE)"`
	LoadTMaxRPS     int      `usage:"max RunN per second for load test. 0 means unlimited"`
	Profile         bool     `usage:"profile runs of runbooks"`
	ProfileOut      string   `usage:"profile output path"`
	ProfileDepth    int      `usage:"depth of profile"`
	ProfileUnit     string   `usage:"-"`
	ProfileSort     string   `usage:"-"`
	Attach          bool     `usage:"attach to runn process"`
	CacheDir        string   `usage:"specify cache directory for remote runbooks"`
	RetainCacheDir  bool     `usage:"retain cache directory for remote runbooks"`
	Scopes          []string `usage:"additional scopes for runn"`
	HostRules       []string `usage:"host rules for runn. (\"host rule,host rule,...\")"`
	WaitTimeout     string   `usage:"timeout for waiting for cleanup process after running runbooks"`
	EnvFile         string   `usage:"load environment variables from a file"`
	ForceColor      bool     `usage:"force colorized output even in non-tty output streams"`
	Verbose         bool     `usage:"verbose"`
	Coverage        bool     `usage:"coverage for OpenAPI spec and protocol buffers"`
	CoverageOut     string   `usage:"coverage output path (JSON format)"`
}

func (*Flags) ToOpts

func (f *Flags) ToOpts() ([]runn.Option, error)

func (*Flags) Usage

func (f *Flags) Usage(name string) string

Jump to

Keyboard shortcuts

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