Documentation
¶
Index ¶
- func ReadFileLines(filename string) ([]string, error)
- type Log
- type Output
- func (o *Output) Content() string
- func (o *Output) Done()
- func (o *Output) Duration() time.Duration
- func (o *Output) Filename() string
- func (o *Output) NewContent() string
- func (o *Output) NewStage(name string)
- func (o *Output) NewStep(name string)
- func (o *Output) StageDuration(name string) time.Duration
- func (o *Output) StageOutputList() []Stage
- func (o *Output) TimeConsuming() TimeConsuming
- func (o *Output) WriteCommandLine(line string)
- func (o *Output) WriteLine(line string)
- func (o *Output) WriteLineWithNoTime(line string)
- type Stage
- type Step
- type TimeConsuming
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Log ¶
type Output ¶
func (*Output) StageDuration ¶
StageDuration 返回某个 Stage 的持续时间
func (*Output) StageOutputList ¶
StageOutputList 返回存储了 Stage 输出的列表
func (*Output) WriteCommandLine ¶
WriteCommandLine 将一行命令行内容写入输出,其实就是在前面加上了一个 "> "
func (*Output) WriteLineWithNoTime ¶ added in v1.0.3
Click to show internal directories.
Click to hide internal directories.