config

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BenchmarkConfig

type BenchmarkConfig struct {
	// contains filtered or unexported fields
}

BenchmarkConfig is the main configuration with functional options

func NewBenchmarkConfig

func NewBenchmarkConfig(spec *models.BenchmarkSpec, opts ...Option) *BenchmarkConfig

NewBenchmarkConfig creates a new configuration with options

func (*BenchmarkConfig) ContextRoot

func (c *BenchmarkConfig) ContextRoot() string

func (*BenchmarkConfig) FixtureDir

func (c *BenchmarkConfig) FixtureDir() string

func (*BenchmarkConfig) LogPath

func (c *BenchmarkConfig) LogPath() string

func (*BenchmarkConfig) OutputPath

func (c *BenchmarkConfig) OutputPath() string

func (*BenchmarkConfig) Spec

Getters

func (*BenchmarkConfig) SpecDir

func (c *BenchmarkConfig) SpecDir() string

func (*BenchmarkConfig) TranscriptDir

func (c *BenchmarkConfig) TranscriptDir() string

func (*BenchmarkConfig) Verbose

func (c *BenchmarkConfig) Verbose() bool

type Option

type Option func(*BenchmarkConfig)

Option is a functional option for BenchmarkConfig

func WithContextRoot

func WithContextRoot(path string) Option

WithContextRoot is an alias for WithFixtureDir for compatibility

func WithFixtureDir

func WithFixtureDir(path string) Option

WithFixtureDir sets the fixture directory (for loading resource files)

func WithLogPath

func WithLogPath(path string) Option

WithLogPath sets the log file path

func WithOutputPath

func WithOutputPath(path string) Option

WithOutputPath sets the output file path

func WithSpecDir

func WithSpecDir(path string) Option

WithSpecDir sets the spec directory (for resolving test patterns)

func WithTranscriptDir

func WithTranscriptDir(path string) Option

WithTranscriptDir sets the directory for per-task transcript files

func WithVerbose

func WithVerbose(enabled bool) Option

WithVerbose enables verbose output

Jump to

Keyboard shortcuts

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