reload

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reload

type Reload struct {
	FinishedRunning chan bool
	FinishedKilling chan bool
	// contains filtered or unexported fields
}

Reload recompiles the build and restarts the binary

func NewReload

func NewReload(cfg *configuration.Configuration, l *logging.Logger) *Reload

NewReload creates a new Reload with the config provided

func (*Reload) BuildCleanup

func (r *Reload) BuildCleanup()

BuildCleanup stops the build

func (*Reload) Cleanup

func (r *Reload) Cleanup()

Cleanup stops the current build and the run

func (*Reload) KillCmd

func (r *Reload) KillCmd(cmd *exec.Cmd) (pid int, err error)

func (*Reload) Run

func (r *Reload) Run()

Run cleans up and starts the new build

func (*Reload) RunCleanup

func (r *Reload) RunCleanup()

RunCleanup stops the run

func (*Reload) StartCmd

func (r *Reload) StartCmd(cmd string) (*exec.Cmd, io.ReadCloser, io.ReadCloser, error)

Jump to

Keyboard shortcuts

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