Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InputSource ¶
InputSource produces lines and signals EOF by closing the channel.
type PipeSource ¶
type PipeSource struct {
// contains filtered or unexported fields
}
PipeSource reads lines from stdin (or any reader).
func NewPipeSource ¶
func NewPipeSource() *PipeSource
NewPipeSource creates a PipeSource reading from os.Stdin.
func NewPipeSourceFromReader ¶
func NewPipeSourceFromReader(r io.Reader) *PipeSource
NewPipeSourceFromReader creates a PipeSource reading from the given reader.
func (*PipeSource) ExitCode ¶
func (p *PipeSource) ExitCode() int
func (*PipeSource) Lines ¶
func (p *PipeSource) Lines() <-chan RawLine
func (*PipeSource) Stop ¶
func (p *PipeSource) Stop()
type WrapperSource ¶
type WrapperSource struct {
// contains filtered or unexported fields
}
WrapperSource spawns a subprocess and reads its stdout/stderr.
func NewWrapperSource ¶
func NewWrapperSource(args []string) (*WrapperSource, error)
NewWrapperSource spawns the given command and captures its output.
func (*WrapperSource) ExitCode ¶
func (w *WrapperSource) ExitCode() int
func (*WrapperSource) Lines ¶
func (w *WrapperSource) Lines() <-chan RawLine
func (*WrapperSource) Stop ¶
func (w *WrapperSource) Stop()
Click to show internal directories.
Click to hide internal directories.