runner

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConfigPath = "./.fresh.yaml"
)

Variables

View Source
var ConfigPath string
View Source
var EnvPrefix = "RUNNER_"

Functions

func Cmd added in v1.3.4

func Cmd(cmdName string, args string) *exec.Cmd

Cmd constructs a raw exec.Cmd to let it parse arguments as if the came in from the command line

func CmdStr added in v1.3.4

func CmdStr(cmd *exec.Cmd) string

func SaveRunnerConfigSettings added in v0.0.7

func SaveRunnerConfigSettings(configPath string)

func Start

func Start()

Start Watches for file changes in the root directory. After each file system event it builds and (re)starts the application.

Types

type Settings added in v0.0.7

type Settings struct {
	Version         string `yaml:"version"`
	Root            string `yaml:"root"`
	MainPath        string `yaml:"main_path"`
	TmpPath         string `yaml:"tmp_path"`
	BuildName       string `yaml:"build_name"`
	BuildArgs       string `yaml:"build_args"`
	RunArgs         string `yaml:"run_args"`
	BuildLog        string `yaml:"build_log"`
	ValidExt        string `yaml:"valid_ext"`
	NoRebuildExt    string `yaml:"no_rebuild_ext"`
	Ignore          string `yaml:"ignore"`
	BuildDelay      string `yaml:"build_delay"` // Number: Nanoseconds, otherwise - parse Duration
	Colors          bool   `yaml:"colors"`
	LogColorMain    string `yaml:"log_color_main"`
	LogColorBuild   string `yaml:"log_color_build"`
	LogColorRunner  string `yaml:"log_color_runner"`
	LogColorWatcher string `yaml:"log_color_watcher"`
	LogColorApp     string `yaml:"log_color_app"`
	Delve           bool   `yaml:"delve"`
	DelveArgs       string `yaml:"delve_args"`
	Debug           bool   `yaml:"debug"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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