runner

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//PlatformWindows const for windows
	PlatformWindows = "windows"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CfgBuild added in v1.29.0

type CfgBuild struct {
	Cmd              string        `toml:"cmd"`
	Bin              string        `toml:"bin"`
	FullBin          string        `toml:"full_bin"`
	Log              string        `toml:"log"`
	IncludeExt       []string      `toml:"include_ext"`
	ExcludeDir       []string      `toml:"exclude_dir"`
	IncludeDir       []string      `toml:"include_dir"`
	ExcludeFile      []string      `toml:"exclude_file"`
	ExcludeRegex     []string      `toml:"exclude_regex"`
	ExcludeUnchanged bool          `toml:"exclude_unchanged"`
	FollowSymlink    bool          `toml:"follow_symlink"`
	Delay            int           `toml:"delay"`
	StopOnError      bool          `toml:"stop_on_error"`
	SendInterrupt    bool          `toml:"send_interrupt"`
	KillDelay        time.Duration `toml:"kill_delay"`
	// contains filtered or unexported fields
}

func (*CfgBuild) RegexCompiled added in v1.29.0

func (c *CfgBuild) RegexCompiled() ([]*regexp.Regexp, error)

type CfgColor added in v1.29.0

type CfgColor struct {
	Main    string `toml:"main"`
	Watcher string `toml:"watcher"`
	Build   string `toml:"build"`
	Runner  string `toml:"runner"`
	App     string `toml:"app"`
}

type CfgLog added in v1.29.0

type CfgLog struct {
	AddTime bool `toml:"time"`
}

type CfgMisc added in v1.29.0

type CfgMisc struct {
	CleanOnExit bool `toml:"clean_on_exit"`
}

type Config added in v1.28.0

type Config struct {
	Root        string   `toml:"root"`
	TmpDir      string   `toml:"tmp_dir"`
	TestDataDir string   `toml:"testdata_dir"`
	Build       CfgBuild `toml:"build"`
	Color       CfgColor `toml:"color"`
	Log         CfgLog   `toml:"log"`
	Misc        CfgMisc  `toml:"misc"`
}

func (*Config) TestDataPath added in v1.28.0

func (c *Config) TestDataPath() string

type Engine

type Engine struct {
	Config *Config
	// contains filtered or unexported fields
}

Engine ...

func NewEngine

func NewEngine(cfgPath string, debugMode bool) (*Engine, error)

NewEngine ...

func NewEngineFromConfig added in v1.28.0

func NewEngineFromConfig(cfg *Config, debugMode bool) (*Engine, error)

func (*Engine) Run

func (e *Engine) Run()

Run run run

func (*Engine) Stop

func (e *Engine) Stop()

Stop the air

Jump to

Keyboard shortcuts

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