utils

package
v0.4.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultProgressBar getter.ProgressTracker = &progressBar{}

DefaultProgressBar is the default instance of a cheggaaa progress bar.

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