Documentation ¶
Index ¶
- type ExpressionCallback
- type SmartPTY
- func (sp *SmartPTY) Always(expression *regexp.Regexp, cb ExpressionCallback)
- func (sp *SmartPTY) Close()
- func (sp *SmartPTY) Once(expression *regexp.Regexp, cb ExpressionCallback)
- func (sp *SmartPTY) Start() error
- func (sp *SmartPTY) Times(expression *regexp.Regexp, cb ExpressionCallback, times int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpressionCallback ¶
ExpressionCallback represents a SmartPTY callback function class Use this to react on matches in stdout data. Boolean value returned by the function is used to indicate if the match shouldn't be shown in stdout
type SmartPTY ¶
type SmartPTY struct {
// contains filtered or unexported fields
}
SmartPTY represents the SmartPTY class
func (*SmartPTY) Always ¶
func (sp *SmartPTY) Always(expression *regexp.Regexp, cb ExpressionCallback)
Always method sets a callback which will always be called when the given expression occurs in terminal stdout
func (*SmartPTY) Close ¶
func (sp *SmartPTY) Close()
Close closes the whole process and shuts down all the goroutines
Click to show internal directories.
Click to hide internal directories.