From 77bf22b01b23352a45fdcfd27046e2e304400c40 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Sat, 14 Jan 2017 15:14:35 -0200 Subject: [PATCH] renamed pipe name to pipe description --- main.go | 4 ++-- pipeline/brew/brew.go | 4 ++-- pipeline/build/build.go | 4 ++-- pipeline/compress/compress.go | 4 ++-- pipeline/defaults/defaults.go | 4 ++-- pipeline/env/env.go | 4 ++-- pipeline/git/git.go | 4 ++-- pipeline/pipe.go | 2 +- pipeline/release/release.go | 4 ++-- pipeline/repos/repos.go | 4 ++-- pipeline/valid/valid.go | 4 ++-- 11 files changed, 21 insertions(+), 21 deletions(-) diff --git a/main.go b/main.go index 54cfdb40b..47a191fc9 100644 --- a/main.go +++ b/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("") } diff --git a/pipeline/brew/brew.go b/pipeline/brew/brew.go index 0e3a27b70..048fbf69e 100644 --- a/pipeline/brew/brew.go +++ b/pipeline/brew/brew.go @@ -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 diff --git a/pipeline/build/build.go b/pipeline/build/build.go index 4ed7954f5..6c82a4f58 100644 --- a/pipeline/build/build.go +++ b/pipeline/build/build.go @@ -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 diff --git a/pipeline/compress/compress.go b/pipeline/compress/compress.go index 0f31045f9..1861ad597 100644 --- a/pipeline/compress/compress.go +++ b/pipeline/compress/compress.go @@ -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 diff --git a/pipeline/defaults/defaults.go b/pipeline/defaults/defaults.go index 133a515c0..050b20d54 100644 --- a/pipeline/defaults/defaults.go +++ b/pipeline/defaults/defaults.go @@ -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 diff --git a/pipeline/env/env.go b/pipeline/env/env.go index 4e1f37d51..b35b9ab28 100644 --- a/pipeline/env/env.go +++ b/pipeline/env/env.go @@ -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 diff --git a/pipeline/git/git.go b/pipeline/git/git.go index 6f84bc08c..ed2e5f39c 100644 --- a/pipeline/git/git.go +++ b/pipeline/git/git.go @@ -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 diff --git a/pipeline/pipe.go b/pipeline/pipe.go index 4f2fc02db..2395469d6 100644 --- a/pipeline/pipe.go +++ b/pipeline/pipe.go @@ -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 diff --git a/pipeline/release/release.go b/pipeline/release/release.go index 430eec45e..66ddb9152 100644 --- a/pipeline/release/release.go +++ b/pipeline/release/release.go @@ -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 diff --git a/pipeline/repos/repos.go b/pipeline/repos/repos.go index 631f871a8..17f82c2f7 100644 --- a/pipeline/repos/repos.go +++ b/pipeline/repos/repos.go @@ -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 diff --git a/pipeline/valid/valid.go b/pipeline/valid/valid.go index 46bb02b24..710e51a13 100644 --- a/pipeline/valid/valid.go +++ b/pipeline/valid/valid.go @@ -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