config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 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 {
	Debug       bool
	Interceptor []string
	Preprocess  []string
	Diff        string
	WorkDir     string
	Shell       string

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

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

func NewConfig

func NewConfig(
	w io.Writer,
	interceptor, preprocess []string,
	diff, shell string,
) *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