Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct { WorkingDirectory string Stdout []OutputProcessor Stderr []OutputProcessor Env map[string]string }
Options when running shell command
type OutputProcessor ¶
OutputProcessor can process a line from command output, does not separate between stdout and stderr. If it returns true it will proceed to next OutputProcessor in line. With false it will not proceed to other processors
func Processors ¶
func Processors(pros ...OutputProcessor) []OutputProcessor
Processors is a helper function to create a list of processors
Click to show internal directories.
Click to hide internal directories.