config_cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug   debug.Options
	Verbose bool
	Quiet   bool
	Todo    bool

	// CustomOut and CustomErr override os.Stdout/os.Stderr when set.
	// Used by MCP handlers to capture command output into buffers.
	CustomOut io.Writer `toml:"-"`
	CustomErr io.Writer `toml:"-"`
	// contains filtered or unexported fields
}

func Default

func Default() (config *Config)

func FromAny

func FromAny(v any) Config

FromAny extracts a Config from an any value

func (Config) GetConfigCLI

func (config Config) GetConfigCLI() Config

func (Config) GetQuiet

func (config Config) GetQuiet() bool

func (Config) GetTodo

func (config Config) GetTodo() bool

func (Config) GetVerbose

func (config Config) GetVerbose() bool

func (Config) IsDryRun

func (config Config) IsDryRun() bool

func (*Config) SetDryRun

func (config *Config) SetDryRun(v bool)

func (*Config) SetFlagDefinitions

func (config *Config) SetFlagDefinitions(flagSet interfaces.CLIFlagDefinitions)

Source Files

  • main.go

Jump to

Keyboard shortcuts

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