MCPcopy
hub / github.com/github/git-sizer / Add

Method Add

internal/pipe/pipeline.go:101–107  ·  view source on GitHub ↗

Add appends one or more stages to the pipeline.

(stages ...Stage)

Source from the content-addressed store, hash-verified

99
100// Add appends one or more stages to the pipeline.
101func (p *Pipeline) Add(stages ...Stage) {
102 if p.hasStarted() {
103 panic("attempt to modify a pipeline that has already started")
104 }
105
106 p.stages = append(p.stages, stages...)
107}
108
109// AddWithIgnoredError appends one or more stages that are ignoring
110// the passed in error to the pipeline.

Callers

nothing calls this directly

Calls 1

hasStartedMethod · 0.95

Tested by

no test coverage detected