1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-04-13 11:50:34 +02:00

renamed pipe name to pipe description

This commit is contained in:
Carlos Alexandro Becker 2017-01-14 15:14:35 -02:00
parent b18185da18
commit 77bf22b01b
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
11 changed files with 21 additions and 21 deletions

View File

@ -59,10 +59,10 @@ func main() {
context := context.New(config) context := context.New(config)
log.SetFlags(0) log.SetFlags(0)
for _, pipe := range pipes { for _, pipe := range pipes {
log.Println("Executing pipe", pipe.Name(), "...") log.Println(pipe.Description())
log.SetPrefix(" -> ") log.SetPrefix(" -> ")
if err := pipe.Run(context); err != nil { if err := pipe.Run(context); err != nil {
return cli.NewExitError(pipe.Name()+" failed: "+err.Error(), 1) return cli.NewExitError(err.Error(), 1)
} }
log.SetPrefix("") log.SetPrefix("")
} }

View File

@ -41,8 +41,8 @@ type templateData struct {
type Pipe struct{} type Pipe struct{}
// Name of the pipe // Name of the pipe
func (Pipe) Name() string { func (Pipe) Description() string {
return "Homebrew" return "Creating homebrew formulae..."
} }
// Run the pipe // Run the pipe

View File

@ -15,8 +15,8 @@ import (
type Pipe struct{} type Pipe struct{}
// Name of the pipe // Name of the pipe
func (Pipe) Name() string { func (Pipe) Description() string {
return "Build" return "Building..."
} }
// Run the pipe // Run the pipe

View File

@ -16,8 +16,8 @@ import (
type Pipe struct{} type Pipe struct{}
// Name of the pipe // Name of the pipe
func (Pipe) Name() string { func (Pipe) Description() string {
return "Compress" return "Creating archives..."
} }
// Run the pipe // Run the pipe

View File

@ -13,8 +13,8 @@ var defaultFiles = []string{"LICENCE", "LICENSE", "README", "CHANGELOG"}
type Pipe struct{} type Pipe struct{}
// Name of the pipe // Name of the pipe
func (Pipe) Name() string { func (Pipe) Description() string {
return "Defaults" return "Setting defaults..."
} }
// Run the pipe // Run the pipe

4
pipeline/env/env.go vendored
View File

@ -13,8 +13,8 @@ var ErrMissingToken = errors.New("Missing GITHUB_TOKEN")
type Pipe struct{} type Pipe struct{}
// Name of the pipe // Name of the pipe
func (Pipe) Name() string { func (Pipe) Description() string {
return "Env" return "Loading data from environment variables..."
} }
// Run the pipe // Run the pipe

View File

@ -6,8 +6,8 @@ import "github.com/goreleaser/releaser/context"
type Pipe struct{} type Pipe struct{}
// Name of the pipe // Name of the pipe
func (Pipe) Name() string { func (Pipe) Description() string {
return "Git" return "Gathering Git data..."
} }
// Run the pipe // Run the pipe

View File

@ -5,7 +5,7 @@ import "github.com/goreleaser/releaser/context"
// Pipe interface // Pipe interface
type Pipe interface { type Pipe interface {
// Name of the pipe // Name of the pipe
Name() string Description() string
// Run the pipe // Run the pipe
Run(ctx *context.Context) error Run(ctx *context.Context) error

View File

@ -15,8 +15,8 @@ import (
type Pipe struct{} type Pipe struct{}
// Name of the pipe // Name of the pipe
func (Pipe) Name() string { func (Pipe) Description() string {
return "GithubRelease" return "Releasing to GitHub..."
} }
// Run the pipe // Run the pipe

View File

@ -10,8 +10,8 @@ import (
type Pipe struct{} type Pipe struct{}
// Name of the pipe // Name of the pipe
func (Pipe) Name() string { func (Pipe) Description() string {
return "Repos" return "Filling repositories data..."
} }
// Run the pipe // Run the pipe

View File

@ -10,8 +10,8 @@ import (
type Pipe struct{} type Pipe struct{}
// Name of the pipe // Name of the pipe
func (Pipe) Name() string { func (Pipe) Description() string {
return "Valid" return "Validating configuration..."
} }
// Run the pipe // Run the pipe