local

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Executor

func Executor(workdir string) nescript.ExecFunc

Executor returns an exec func that can execute a NEScript locally. A working directory can optionally be specified, where if not, the current working directory of the application is used. This ExecFunc does not require that the cmd/script be converted to a string, so is Formatter agnostic.

Types

type LocalProcess

type LocalProcess struct {
	// contains filtered or unexported fields
}

Process represents a single instance of the script running or completed on the local device.

func (*LocalProcess) Close

func (p *LocalProcess) Close()

func (*LocalProcess) Exited

func (p *LocalProcess) Exited() bool

func (*LocalProcess) Kill

func (p *LocalProcess) Kill() error

func (*LocalProcess) Result

func (p *LocalProcess) Result() (*nescript.Result, error)

func (*LocalProcess) Signal

func (p *LocalProcess) Signal(s os.Signal) error

func (*LocalProcess) Write

func (p *LocalProcess) Write(input string) error

Jump to

Keyboard shortcuts

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