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

config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: MIT Imports: 7 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     `yaml:"showCmdLog,omitempty"`
	Debug           bool     `yaml:"debug,omitempty"`
	Startup         []string `yaml:"startup,omitempty"`
	Interceptor     []string `yaml:"interceptor,omitempty"`
	Preprocess      []string `yaml:"preprocess,omitempty"`
	LeftPreprocess  []string `yaml:"leftPreprocess,omitempty"`
	RightPreprocess []string `yaml:"rightPreprocess,omitempty"`
	Diff            string   `yaml:"diff,omitempty"`
	WorkDir         string   `yaml:"workDir,omitempty"`
	Shell           string   `yaml:"shell,omitempty"`
	Delimiter       string   `yaml:"delimiter,omitempty"`
	UseLabel        bool     `yaml:"label,omitempty"`
	Env             []string `yaml:"env,omitempty"`
	LeftEnv         []string `yaml:"leftEnv,omitempty"`
	RightEnv        []string `yaml:"rightEnv,omitempty"`
	Cleanup         []string `yaml:"cleanup,omitempty"`

	CommonArgs []string `yaml:"commonArgs,omitempty"`
	LeftArgs   []string `yaml:"leftArgs,omitempty"`
	RightArgs  []string `yaml:"rightArgs,omitempty"`

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

func (*Config) Close

func (c *Config) Close() error

func (Config) GetLeftArgs

func (c Config) GetLeftArgs() []string

func (Config) GetLeftEnv added in v0.2.0

func (c Config) GetLeftEnv() []string

func (Config) GetLeftPreprocess added in v0.2.0

func (c Config) GetLeftPreprocess() []string

func (Config) GetRightArgs

func (c Config) GetRightArgs() []string

func (Config) GetRightEnv added in v0.2.0

func (c Config) GetRightEnv() []string

func (Config) GetRightPreprocess added in v0.2.0

func (c Config) GetRightPreprocess() []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