Documentation
¶
Overview ¶
Package buildprogress reports product-neutral diagnostics for explicit builds.
Index ¶
- func CombinedOutput(ctx context.Context, cmd *exec.Cmd) ([]byte, error)
- func Enabled(ctx context.Context) bool
- func Member(ctx context.Context, name string) context.Context
- func Observe(ctx context.Context, notify func(Event), verbose bool) context.Context
- func Phase(ctx context.Context, phase, step string)
- func Run(ctx context.Context, cmd *exec.Cmd) error
- func ToolArgs(ctx context.Context, language string, args []string) []string
- func Verbose(ctx context.Context) bool
- type Event
- type Reporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombinedOutput ¶
CombinedOutput preserves the compiler diagnostics used by build failure classification while streaming them to the selected observer.
func Observe ¶
Observe selects build diagnostics for this operation only. Callbacks are synchronous. pig additive (D18): only explicit build callers select progress reporting.
Types ¶
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter owns a build's status animation. Close joins its timer before returning.
func (*Reporter) Close ¶
func (r *Reporter) Close()
Close clears the live display and stops all further writes. It is idempotent.
func (*Reporter) Failure ¶
Failure includes the last real phase and an actionable hint. Long compiler output is reduced to its diagnostic tail and terminal controls are removed.
func (*Reporter) Handle ¶
Handle consumes a real phase or toolchain line. It is safe for concurrent tool output.