Documentation
¶
Index ¶
- Constants
- func AllInOneOpt(onlyErrors, noVerbose, compact, forceTty, notDrawable, noHeader bool) optFunc
- func CompactOpt(compact bool) optFunc
- func ForceTtyOpt(forceTty bool) optFunc
- func IsErrErrJobs(err error) bool
- func NoVerboseOpt(noVerbose bool) optFunc
- func NotDrawableOpt(notDrawable bool) optFunc
- func NotHeaderOpt(noHeader bool) optFunc
- func OnlyErrorsOpt(onlyErrors bool) optFunc
- func ParseCommands(cmdRaw string) ([][]string, error)
- type ErrJobs
- type FanoutReader
- type Job
- type MultiWriters
- type Ptask
Constants ¶
View Source
const ( JobStateWait jobState = 1 << iota JobStateRun JobStateFinish )
Variables ¶
This section is empty.
Functions ¶
func AllInOneOpt ¶
func AllInOneOpt(onlyErrors, noVerbose, compact, forceTty, notDrawable, noHeader bool) optFunc
see details on other optFunc
func CompactOpt ¶
func CompactOpt(compact bool) optFunc
Do not see details from each task, only set fail or ok in output
func ForceTtyOpt ¶
func ForceTtyOpt(forceTty bool) optFunc
Force to use a tty for getting color output
func IsErrErrJobs ¶
func NotDrawableOpt ¶
func NotDrawableOpt(notDrawable bool) optFunc
Do not draw tasks for refreshing their state in output This will only output details when all tasks complete
func NotHeaderOpt ¶
func NotHeaderOpt(noHeader bool) optFunc
Do not write `Running all tasks in parallel with...` in output
func ParseCommands ¶
Types ¶
type FanoutReader ¶
type FanoutReader struct {
// contains filtered or unexported fields
}
func NewFanoutReader ¶
func NewFanoutReader(source io.Reader) *FanoutReader
func (*FanoutReader) AddWriter ¶
func (f *FanoutReader) AddWriter(writer io.Writer)
func (*FanoutReader) Fanout ¶
func (f *FanoutReader) Fanout() error
type Job ¶
type Job struct { Name string Data interface{} // contains filtered or unexported fields }
func (*Job) DrawOutput ¶
type MultiWriters ¶
type Ptask ¶
type Ptask struct {
// contains filtered or unexported fields
}
func (*Ptask) CompactPrint ¶
func (*Ptask) CompactPrintln ¶
Click to show internal directories.
Click to hide internal directories.