runner

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 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

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

func CmdStr(cmd *exec.Cmd) string

func SaveRunnerConfigSettings

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

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"`
	LogColorDebugger string `yaml:"log_color_debugger"`
	Delve            bool   `yaml:"delve"`
	DelveArgs        string `yaml:"delve_args"`
	DelveListen      string `yaml:"delve_listen"`
	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