mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-22 04:08:49 +02:00
renamed pipe name to pipe description
This commit is contained in:
parent
b18185da18
commit
77bf22b01b
4
main.go
4
main.go
@ -59,10 +59,10 @@ func main() {
|
||||
context := context.New(config)
|
||||
log.SetFlags(0)
|
||||
for _, pipe := range pipes {
|
||||
log.Println("Executing pipe", pipe.Name(), "...")
|
||||
log.Println(pipe.Description())
|
||||
log.SetPrefix(" -> ")
|
||||
if err := pipe.Run(context); err != nil {
|
||||
return cli.NewExitError(pipe.Name()+" failed: "+err.Error(), 1)
|
||||
return cli.NewExitError(err.Error(), 1)
|
||||
}
|
||||
log.SetPrefix("")
|
||||
}
|
||||
|
@ -41,8 +41,8 @@ type templateData struct {
|
||||
type Pipe struct{}
|
||||
|
||||
// Name of the pipe
|
||||
func (Pipe) Name() string {
|
||||
return "Homebrew"
|
||||
func (Pipe) Description() string {
|
||||
return "Creating homebrew formulae..."
|
||||
}
|
||||
|
||||
// Run the pipe
|
||||
|
@ -15,8 +15,8 @@ import (
|
||||
type Pipe struct{}
|
||||
|
||||
// Name of the pipe
|
||||
func (Pipe) Name() string {
|
||||
return "Build"
|
||||
func (Pipe) Description() string {
|
||||
return "Building..."
|
||||
}
|
||||
|
||||
// Run the pipe
|
||||
|
@ -16,8 +16,8 @@ import (
|
||||
type Pipe struct{}
|
||||
|
||||
// Name of the pipe
|
||||
func (Pipe) Name() string {
|
||||
return "Compress"
|
||||
func (Pipe) Description() string {
|
||||
return "Creating archives..."
|
||||
}
|
||||
|
||||
// Run the pipe
|
||||
|
@ -13,8 +13,8 @@ var defaultFiles = []string{"LICENCE", "LICENSE", "README", "CHANGELOG"}
|
||||
type Pipe struct{}
|
||||
|
||||
// Name of the pipe
|
||||
func (Pipe) Name() string {
|
||||
return "Defaults"
|
||||
func (Pipe) Description() string {
|
||||
return "Setting defaults..."
|
||||
}
|
||||
|
||||
// Run the pipe
|
||||
|
4
pipeline/env/env.go
vendored
4
pipeline/env/env.go
vendored
@ -13,8 +13,8 @@ var ErrMissingToken = errors.New("Missing GITHUB_TOKEN")
|
||||
type Pipe struct{}
|
||||
|
||||
// Name of the pipe
|
||||
func (Pipe) Name() string {
|
||||
return "Env"
|
||||
func (Pipe) Description() string {
|
||||
return "Loading data from environment variables..."
|
||||
}
|
||||
|
||||
// Run the pipe
|
||||
|
@ -6,8 +6,8 @@ import "github.com/goreleaser/releaser/context"
|
||||
type Pipe struct{}
|
||||
|
||||
// Name of the pipe
|
||||
func (Pipe) Name() string {
|
||||
return "Git"
|
||||
func (Pipe) Description() string {
|
||||
return "Gathering Git data..."
|
||||
}
|
||||
|
||||
// Run the pipe
|
||||
|
@ -5,7 +5,7 @@ import "github.com/goreleaser/releaser/context"
|
||||
// Pipe interface
|
||||
type Pipe interface {
|
||||
// Name of the pipe
|
||||
Name() string
|
||||
Description() string
|
||||
|
||||
// Run the pipe
|
||||
Run(ctx *context.Context) error
|
||||
|
@ -15,8 +15,8 @@ import (
|
||||
type Pipe struct{}
|
||||
|
||||
// Name of the pipe
|
||||
func (Pipe) Name() string {
|
||||
return "GithubRelease"
|
||||
func (Pipe) Description() string {
|
||||
return "Releasing to GitHub..."
|
||||
}
|
||||
|
||||
// Run the pipe
|
||||
|
@ -10,8 +10,8 @@ import (
|
||||
type Pipe struct{}
|
||||
|
||||
// Name of the pipe
|
||||
func (Pipe) Name() string {
|
||||
return "Repos"
|
||||
func (Pipe) Description() string {
|
||||
return "Filling repositories data..."
|
||||
}
|
||||
|
||||
// Run the pipe
|
||||
|
@ -10,8 +10,8 @@ import (
|
||||
type Pipe struct{}
|
||||
|
||||
// Name of the pipe
|
||||
func (Pipe) Name() string {
|
||||
return "Valid"
|
||||
func (Pipe) Description() string {
|
||||
return "Validating configuration..."
|
||||
}
|
||||
|
||||
// Run the pipe
|
||||
|
Loading…
x
Reference in New Issue
Block a user