mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +02:00
1ed299a6d7
Right now the code looks weird because the defaults of a pipe are far away of the implementation of the pipe. the intend of this PR is to bring them closer by having a Defaulter interface. I also renamed the Pipe interface to Piper, and removed the Description method in favor for fmt.Stringer.
16 lines
230 B
Go
16 lines
230 B
Go
package pipeline
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/goreleaser/goreleaser/context"
|
|
)
|
|
|
|
// Defaulter interface
|
|
type Defaulter interface {
|
|
fmt.Stringer
|
|
|
|
// Default sets the configuration defaults
|
|
Default(ctx *context.Context) error
|
|
}
|