subprocess

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Subprocess

type Subprocess struct {
	Status         SubprocessStatus `json:"status"`
	WDir           string           `json:"-"`
	Program        string           `json:"-"`
	Args           []string         `json:"-"`
	Process        *os.Process      `json:"-"`
	StdinStream    io.WriteCloser   `json:"-"`
	StdoutCallback func(string)     `json:"-"`
	StderrCallback func(string)     `json:"-"`
	PreProcess     func()           `json:"-"`
	PostProcess    func()           `json:"-"`
}

func (*Subprocess) Execute

func (p *Subprocess) Execute()

func (*Subprocess) Kill

func (p *Subprocess) Kill()

func (*Subprocess) PostKey

func (p *Subprocess) PostKey(key uint8) (uintptr, error)

type SubprocessStatus

type SubprocessStatus int
const (
	SubprocessStatusNotStarted SubprocessStatus = iota
	SubprocessStatusRunning
	SubprocessStatusFinished
)

Jump to

Keyboard shortcuts

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