Documentation ¶
Index ¶
- func AddEnvironmentCapture(sourceLang string, script *scripts.Script, captures []string)
- func ChangeCommentsToSpinnerCommands(sourceLang string, source []byte) []byte
- type ErrorDetails
- type ErrorSource
- type ExecutionIntent
- type ExecutionResult
- type Process
- type RundownCommandHandler
- type Runner
- type Running
- type StdinReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEnvironmentCapture ¶
Types ¶
type ErrorDetails ¶
type ErrorDetails struct { Error string ErrorSource *ErrorSource }
func ParseError ¶
func ParseError(script *scripts.Script, stdout string) *ErrorDetails
type ErrorSource ¶
type ExecutionIntent ¶
type ExecutionIntent struct { Via string Script []byte ReplaceProcess bool StartedChan chan interface{} // contains filtered or unexported fields }
func NewExecution ¶
func NewExecution(via string, script []byte, cwd string) (*ExecutionIntent, error)
func (*ExecutionIntent) AddModifier ¶
func (i *ExecutionIntent) AddModifier(mod modifiers.ExecutionModifier) modifiers.ExecutionModifier
func (*ExecutionIntent) Execute ¶
func (i *ExecutionIntent) Execute() (*ExecutionResult, error)
func (*ExecutionIntent) ImportEnv ¶
func (i *ExecutionIntent) ImportEnv(env map[string]string)
type ExecutionResult ¶
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
func NewProcess ¶
func (*Process) Start ¶
func (p *Process) Start() (*io.PipeReader, *io.PipeReader, error)
type RundownCommandHandler ¶
type Runner ¶
func (*Runner) ExecuteAndReplace ¶
Executes the script, replacing the current process.
func (*Runner) RunReplacingProcess ¶
type Running ¶
type Running struct { Runner *Runner Stdout io.ReadCloser StderrOutput []byte Stderr io.ReadCloser // contains filtered or unexported fields }
type StdinReader ¶
type StdinReader struct {
// contains filtered or unexported fields
}
Reading directly from STDIN when executing multiple processes creates issues, as STDIN read is blocking and you can't cancel it. Instead, this is the only place we read from STDIN, and we direct the byte stream to the io.Reader returned by Claim().
func NewStdinReader ¶
func NewStdinReader() *StdinReader
func (*StdinReader) Claim ¶
func (r *StdinReader) Claim() io.ReadCloser
func (*StdinReader) Stop ¶
func (r *StdinReader) Stop()
Click to show internal directories.
Click to hide internal directories.