Documentation ¶
Index ¶
- type CommandHandler
- type EnvironmentCapture
- type ExecutionModifier
- type ExecutionModifierList
- type ExecutionModifiers
- func (m *ExecutionModifiers) AddModifier(modifier ExecutionModifier)
- func (m *ExecutionModifiers) GetResult(exitCode int) []ModifierResult
- func (m *ExecutionModifiers) GetStdout() []io.Writer
- func (m *ExecutionModifiers) HandleOSC(command string)
- func (m *ExecutionModifiers) PrepareScripts(scripts *scripts.ScriptManager)
- type ModifierResult
- type NullModifier
- type OSCHandler
- type Replace
- type RpcStream
- type SpinnerConstant
- type SpinnerControl
- type SpinnerFromScript
- type Stdout
- type StdoutStream
- type TrackProgress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandHandler ¶
type CommandHandler func(s string)
type EnvironmentCapture ¶
type EnvironmentCapture struct { ExecutionModifier Variables []string // contains filtered or unexported fields }
func NewEnvironmentCapture ¶
func NewEnvironmentCapture(variables []string) *EnvironmentCapture
func (*EnvironmentCapture) GetResult ¶
func (m *EnvironmentCapture) GetResult(int) []ModifierResult
func (*EnvironmentCapture) PrepareScripts ¶
func (m *EnvironmentCapture) PrepareScripts(scripts *scripts.ScriptManager)
func (*EnvironmentCapture) ReceiveEvent ¶
func (m *EnvironmentCapture) ReceiveEvent(event bus.Event)
type ExecutionModifier ¶
type ExecutionModifier interface { PrepareScripts(scripts *scripts.ScriptManager) GetResult(int) []ModifierResult GetStdout() []io.Writer }
type ExecutionModifierList ¶
type ExecutionModifierList []ExecutionModifier
type ExecutionModifiers ¶
type ExecutionModifiers struct { ExecutionModifier // contains filtered or unexported fields }
func NewExecutionModifiers ¶
func NewExecutionModifiers() *ExecutionModifiers
func (*ExecutionModifiers) AddModifier ¶
func (m *ExecutionModifiers) AddModifier(modifier ExecutionModifier)
func (*ExecutionModifiers) GetResult ¶
func (m *ExecutionModifiers) GetResult(exitCode int) []ModifierResult
func (*ExecutionModifiers) GetStdout ¶
func (m *ExecutionModifiers) GetStdout() []io.Writer
func (*ExecutionModifiers) HandleOSC ¶
func (m *ExecutionModifiers) HandleOSC(command string)
func (*ExecutionModifiers) PrepareScripts ¶
func (m *ExecutionModifiers) PrepareScripts(scripts *scripts.ScriptManager)
type ModifierResult ¶
type ModifierResult struct { Key string Value interface{} }
type NullModifier ¶
type NullModifier struct {
ExecutionModifier
}
func (*NullModifier) GetResult ¶
func (m *NullModifier) GetResult(int) []ModifierResult
func (*NullModifier) GetStdout ¶
func (m *NullModifier) GetStdout() []io.Writer
func (*NullModifier) PrepareScripts ¶
func (m *NullModifier) PrepareScripts(scripts *scripts.ScriptManager)
func (*NullModifier) ReceiveEvent ¶
func (m *NullModifier) ReceiveEvent(event bus.Event)
type OSCHandler ¶
type Replace ¶
type Replace struct { ExecutionModifier // contains filtered or unexported fields }
func NewReplace ¶
func (*Replace) PrepareScripts ¶
func (m *Replace) PrepareScripts(scripts *scripts.ScriptManager)
type RpcStream ¶
type RpcStream struct { ExecutionModifier Reader *os.File // contains filtered or unexported fields }
func NewRpcStream ¶
func NewRpcStream(handler CommandHandler) *RpcStream
func (*RpcStream) GetResult ¶
func (m *RpcStream) GetResult(int) []ModifierResult
type SpinnerConstant ¶
type SpinnerConstant struct { bus.Handler ExecutionModifier Spinner SpinnerControl SpinnerName string }
SpinnerFromScript modifier requires the TrackProgress modifier.
func NewSpinnerConstant ¶
func NewSpinnerConstant(name string, spinner SpinnerControl) *SpinnerConstant
func (*SpinnerConstant) GetResult ¶
func (m *SpinnerConstant) GetResult(exitCode int) []ModifierResult
func (*SpinnerConstant) PrepareScripts ¶
func (m *SpinnerConstant) PrepareScripts(scripts *scripts.ScriptManager)
func (*SpinnerConstant) ReceiveEvent ¶
func (m *SpinnerConstant) ReceiveEvent(event bus.Event)
type SpinnerControl ¶
type SpinnerFromScript ¶
type SpinnerFromScript struct { bus.Handler ExecutionModifier Spinner *SpinnerConstant CommentsAsSpinnerTitles bool // contains filtered or unexported fields }
SpinnerFromScript modifier requires the TrackProgress modifier.
func NewSpinnerFromScript ¶
func NewSpinnerFromScript(CommentsAsSpinnerTitles bool, spinner *SpinnerConstant) *SpinnerFromScript
func (*SpinnerFromScript) GetResult ¶
func (m *SpinnerFromScript) GetResult(int) []ModifierResult
func (*SpinnerFromScript) HandleOSC ¶
func (m *SpinnerFromScript) HandleOSC(osc string) bool
func (*SpinnerFromScript) PrepareScripts ¶
func (m *SpinnerFromScript) PrepareScripts(scripts *scripts.ScriptManager)
func (*SpinnerFromScript) ReceiveEvent ¶
func (m *SpinnerFromScript) ReceiveEvent(event bus.Event)
type Stdout ¶
type Stdout struct { bus.Handler ExecutionModifier // contains filtered or unexported fields }
func (*Stdout) GetResult ¶
func (m *Stdout) GetResult(int) []ModifierResult
func (*Stdout) PrepareScripts ¶
func (m *Stdout) PrepareScripts(scripts *scripts.ScriptManager)
type StdoutStream ¶
type StdoutStream struct { bus.Handler ExecutionModifier Reader *os.File // contains filtered or unexported fields }
func NewStdoutStream ¶
func NewStdoutStream() *StdoutStream
func (*StdoutStream) GetResult ¶
func (m *StdoutStream) GetResult(int) []ModifierResult
func (*StdoutStream) GetStdout ¶
func (m *StdoutStream) GetStdout() []io.Writer
type TrackProgress ¶
type TrackProgress struct { ExecutionModifier // contains filtered or unexported fields }
func NewTrackProgress ¶
func NewTrackProgress() *TrackProgress
func (*TrackProgress) GetDuration ¶
func (m *TrackProgress) GetDuration() time.Duration
func (*TrackProgress) GetResult ¶
func (m *TrackProgress) GetResult(int) []ModifierResult
func (*TrackProgress) PrepareScripts ¶
func (m *TrackProgress) PrepareScripts(scripts *scripts.ScriptManager)
func (*TrackProgress) ReceiveEvent ¶
func (m *TrackProgress) ReceiveEvent(event bus.Event)
Click to show internal directories.
Click to hide internal directories.