executor

package
v0.0.0-...-680530f Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandExector

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

func NewCommandExecutor

func NewCommandExecutor(cmdStr string, update <-chan struct{}) *CommandExector

func (*CommandExector) Close

func (c *CommandExector) Close()

func (*CommandExector) Watcher

func (c *CommandExector) Watcher() <-chan CommandState

type CommandState

type CommandState struct {
	State  State
	Err    error
	Output []byte
}

type State

type State int
const (
	Executing State = iota
	Done
	Error
)

Jump to

Keyboard shortcuts

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