Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConfig = errors.New("Config")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	ShowCmdLog  bool
	Debug       bool
	Interceptor []string
	Preprocess  []string
	Diff        string
	WorkDir     string
	Shell       string
	Delimiter   string
	UseLabel    bool

	CommonArgs []string
	LeftArgs   []string
	RightArgs  []string

	Writer  io.Writer `json:"-"`
	TempDir string
}

func NewConfig

func NewConfig(
	w io.Writer,
	interceptor, preprocess []string,
	diff, shell, delimiter string,
	useLabel bool,
) *Config

func (*Config) Close

func (c *Config) Close() error

func (Config) GetLeftArgs

func (c Config) GetLeftArgs() []string

func (Config) GetRightArgs

func (c Config) GetRightArgs() []string

func (*Config) Init

func (c *Config) Init(args []string) error

func (Config) SetupLogger

func (c Config) SetupLogger(w io.Writer)

Jump to

Keyboard shortcuts

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