1
0
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:
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)
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("")
}

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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
View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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