Documentation ¶
Index ¶
Constants ¶
View Source
const ( LineStdout int = iota LineStderr LineExitCode LineMetadata LineProgress )
Identifies the type of line in the logs.
Variables ¶
View Source
var Command = &cli.Command{ Name: "exec", Usage: "execute a local build", ArgsUsage: "[path/to/.woodpecker.yml]", Action: run, Flags: append(common.GlobalFlags, flags...), }
Command exports the exec command.
Functions ¶
This section is empty.
Types ¶
type Line ¶
type Line struct { Proc string `json:"proc,omitempty"` Time int64 `json:"time,omitempty"` Type int `json:"type,omitempty"` Pos int `json:"pos,omitempty"` Out string `json:"out,omitempty"` }
Line is a line of console output.
type LineWriter ¶
type LineWriter struct {
// contains filtered or unexported fields
}
LineWriter sends logs to the client.
func NewLineWriter ¶
func NewLineWriter(name string) *LineWriter
NewLineWriter returns a new line reader.
Click to show internal directories.
Click to hide internal directories.