Documentation
¶
Index ¶
- Variables
- type Config
- func (c *Config) Close() error
- func (c Config) GetLeftArgs() []string
- func (c Config) GetLeftEnv() []string
- func (c Config) GetLeftPreprocess() []string
- func (c Config) GetRightArgs() []string
- func (c Config) GetRightEnv() []string
- func (c Config) GetRightPreprocess() []string
- func (c *Config) Init(args []string) error
- func (c Config) SetupLogger(w io.Writer)
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 `name:"show-cmd-log" usage:"print stdout and stderr of executed subcommands to log output" yaml:"show-cmd-log,omitempty"`
Debug bool `name:"debug" usage:"enable debug log output" yaml:"debug,omitempty"`
DryRun bool `` /* 140-byte string literal not displayed */
// Command list hooks: separated by newline (\n) in env vars to allow quotes/delimiters in scripts safely.
Startup []string `` /* 235-byte string literal not displayed */
Interceptor []string `` /* 263-byte string literal not displayed */
Preprocess []string `` /* 294-byte string literal not displayed */
LeftPreprocess []string `` /* 256-byte string literal not displayed */
RightPreprocess []string `` /* 259-byte string literal not displayed */
Diff string `` /* 172-byte string literal not displayed */
WorkDir string `` /* 167-byte string literal not displayed */
Shell string `name:"shell" short:"S" default:"bash" usage:"shell executable used to run subcommands" yaml:"shell,omitempty"`
Delimiter string `` /* 159-byte string literal not displayed */
UseLabel bool `` /* 149-byte string literal not displayed */
// Environment variable pairs (KEY=VALUE): separated by comma (,) in env vars.
Env []string `` /* 212-byte string literal not displayed */
LeftEnv []string `` /* 204-byte string literal not displayed */
RightEnv []string `` /* 208-byte string literal not displayed */
Cleanup []string `` /* 229-byte string literal not displayed */
CommonArgs []string `name:"-" yaml:"common-args,omitempty"`
LeftArgs []string `name:"-" yaml:"left-args,omitempty"`
RightArgs []string `name:"-" yaml:"right-args,omitempty"`
Writer io.Writer `name:"-" json:"-" yaml:"-"`
TempDir string `name:"-" json:"-" yaml:"-"`
Timeout time.Duration `name:"timeout" usage:"maximum timeout for entire cmdcomp execution (e.g. '30s', '2m')" yaml:"timeout,omitempty"`
ProcessTimeout time.Duration `` /* 139-byte string literal not displayed */
Success bool `` /* 151-byte string literal not displayed */
ConfigPath string `` /* 145-byte string literal not displayed */
PresetName string `` /* 148-byte string literal not displayed */
Version bool `name:"version" usage:"display version and exit" yaml:"-"`
}
func (Config) GetLeftArgs ¶
func (Config) GetLeftEnv ¶ added in v0.2.0
func (Config) GetLeftPreprocess ¶ added in v0.2.0
func (Config) GetRightArgs ¶
func (Config) GetRightEnv ¶ added in v0.2.0
func (Config) GetRightPreprocess ¶ added in v0.2.0
func (Config) SetupLogger ¶
Click to show internal directories.
Click to hide internal directories.