watcher

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, c Config) error

Types

type Config

type Config struct {
	Dir             string
	AdditionalFiles []string
	BuildFlags      []string
	RuntimeArgs     []string
	Vendor          bool
	PrintFiles      bool
	Env             []string

	// Non serialized fields
	Stdout, Stderr io.Writer                `json:"-"`
	OnFileChange   func(file string)        `json:"-"`
	OnProcessStart func()                   `json:"-"`
	OnProcessExit  func(err error)          `json:"-"`
	Logf           func(s string, a ...any) `json:"-"`
}

Jump to

Keyboard shortcuts

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