Documentation
¶
Overview ¶
Package config holds the harness's flag-bound application config. It reads Cobra flags via a small registry and exposes a single App struct consumed by the runner.
Index ¶
Constants ¶
View Source
const ( FailFastOnAny = "any" FailFastOnFailure = "failure" FailFastOnTimeout = "timeout" FailFastOnSlow = "slow" )
Valid values for --fail-fast-on.
Variables ¶
This section is empty.
Functions ¶
func NormalizeFailFastOn ¶
NormalizeFailFastOn validates --fail-fast-on values and returns lowercase, de-duplicated categories in first-seen order.
func ValidateDiagnose ¶
ValidateDiagnose checks diagnose-mode invariants on conf and normalizes FailFastOn in place. Call after Load.
Types ¶
type App ¶
type App struct {
RepoRoot string
AIOutput bool
Iterations int
ParallelIterations int
SlowThreshold time.Duration
FailFast bool
FailFastOn []string
Shuffle bool
IterationSetup string
IterationTeardown string
// contains filtered or unexported fields
}
App is the flag-bound configuration shared across testrig subcommands.
func (*App) ShellCommand ¶
ShellCommand returns the shell command bound to a catalog flag (e.g. iteration-setup).
Click to show internal directories.
Click to hide internal directories.