config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 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
	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,
	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