watcher

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

type Watcher struct {
	Label           string
	Extensions      []string
	IncludePatterns []*regexp.Regexp
	IgnorePatterns  []*regexp.Regexp
	IncludeDirs     []string
	IgnoreDirs      []string
	BuildCommand    string
	RunCommand      *string
	RebuildDelay    time.Duration
	ChangeDetected  bool
	// contains filtered or unexported fields
}

func NewWatcher

func NewWatcher(label string, extensions []string, includeDirs []string, ignoreDirs []string, includePatterns []string, ignorePatterns []string, buildCommand string, runCommand *string, rebuildDelay time.Duration, debug bool) (*Watcher, error)

func (*Watcher) Start

func (w *Watcher) Start()

func (*Watcher) Stop

func (w *Watcher) Stop()

Jump to

Keyboard shortcuts

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