Documentation ¶
Index ¶
- Variables
- func MakeAnsiColorWriter(child io.Writer, color string) io.Writer
- func MakeMultiWriter(children ...io.Writer) io.Writer
- func MakeWrappedWriter(child io.Writer, prefix string, postfix string) io.Writer
- func RunCommand(args []string, log TaskLog) bool
- type CommandTask
- type FlatTextLog
- func (log *FlatTextLog) Begin(t time.Time)
- func (log *FlatTextLog) BeginCapture() (io.Writer, io.Writer)
- func (log *FlatTextLog) CreateSubtask(name string) TaskLog
- func (log *FlatTextLog) End(t time.Time, d time.Duration)
- func (log *FlatTextLog) EndCapture()
- func (log *FlatTextLog) LogError(format string, args ...interface{})
- func (log *FlatTextLog) LogInfo(format string, args ...interface{})
- type FlatTextLogPrinter
- type MultiLog
- func (log *MultiLog) Begin(t time.Time)
- func (log *MultiLog) BeginCapture() (io.Writer, io.Writer)
- func (log *MultiLog) CreateSubtask(name string) TaskLog
- func (log *MultiLog) End(t time.Time, d time.Duration)
- func (log *MultiLog) EndCapture()
- func (log *MultiLog) LogError(format string, args ...interface{})
- func (log *MultiLog) LogInfo(format string, args ...interface{})
- type NullLog
- func (log *NullLog) Begin(t time.Time)
- func (log *NullLog) BeginCapture() (io.Writer, io.Writer)
- func (log *NullLog) CreateSubtask(name string) TaskLog
- func (log *NullLog) End(t time.Time, d time.Duration)
- func (log *NullLog) EndCapture()
- func (log *NullLog) LogError(format string, args ...interface{})
- func (log *NullLog) LogInfo(format string, args ...interface{})
- type TaskDecl
- type TaskLog
Constants ¶
This section is empty.
Variables ¶
View Source
var NullWriter = &nullWriter{}
Functions ¶
func MakeWrappedWriter ¶
func RunCommand ¶
Types ¶
type CommandTask ¶
type CommandTask struct {
Args []string
}
func Command ¶
func Command(args ...string) *CommandTask
func (*CommandTask) Run ¶
func (task *CommandTask) Run(log TaskLog) bool
type FlatTextLog ¶
type FlatTextLog struct { Parent TaskLog Path []string Printer *FlatTextLogPrinter }
func (*FlatTextLog) Begin ¶
func (log *FlatTextLog) Begin(t time.Time)
func (*FlatTextLog) BeginCapture ¶
func (log *FlatTextLog) BeginCapture() (io.Writer, io.Writer)
func (*FlatTextLog) CreateSubtask ¶
func (log *FlatTextLog) CreateSubtask(name string) TaskLog
func (*FlatTextLog) EndCapture ¶
func (log *FlatTextLog) EndCapture()
func (*FlatTextLog) LogError ¶
func (log *FlatTextLog) LogError(format string, args ...interface{})
func (*FlatTextLog) LogInfo ¶
func (log *FlatTextLog) LogInfo(format string, args ...interface{})
type FlatTextLogPrinter ¶
type MultiLog ¶
type MultiLog struct {
Children []TaskLog
}
func (*MultiLog) CreateSubtask ¶
func (*MultiLog) EndCapture ¶
func (log *MultiLog) EndCapture()
type NullLog ¶
type NullLog struct { }
func (*NullLog) CreateSubtask ¶
func (*NullLog) EndCapture ¶
func (log *NullLog) EndCapture()
type TaskLog ¶
type TaskLog interface { LogInfo(format string, args ...interface{}) LogError(format string, args ...interface{}) BeginCapture() (io.Writer, io.Writer) EndCapture() CreateSubtask(name string) TaskLog Begin(t time.Time) End(t time.Time, d time.Duration) }
func MakeConsoleLog ¶
func MakeConsoleLog() TaskLog
func MakeMultiLog ¶
Click to show internal directories.
Click to hide internal directories.