1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-10-30 23:58:09 +02:00

feat: improve output a bit (#1380)

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker
2020-03-06 01:25:09 -03:00
committed by GitHub
parent 5efb690d1c
commit 81417ea989
11 changed files with 11 additions and 13 deletions

View File

@@ -1,8 +1,6 @@
package middleware package middleware
import ( import (
"strings"
"github.com/apex/log" "github.com/apex/log"
"github.com/apex/log/handlers/cli" "github.com/apex/log/handlers/cli"
"github.com/fatih/color" "github.com/fatih/color"
@@ -30,7 +28,7 @@ func Logging(title string, next Action, padding Padding) Action {
cli.Default.Padding = int(DefaultInitialPadding) cli.Default.Padding = int(DefaultInitialPadding)
}() }()
cli.Default.Padding = int(padding) cli.Default.Padding = int(padding)
log.Infof(color.New(color.Bold).Sprint(strings.ToUpper(title))) log.Infof(color.New(color.Bold).Sprint(title))
cli.Default.Padding = int(padding + DefaultInitialPadding) cli.Default.Padding = int(padding + DefaultInitialPadding)
return next(ctx) return next(ctx)
} }

View File

@@ -40,7 +40,7 @@ type Pipe struct{}
// String returns the description of the pipe // String returns the description of the pipe
func (Pipe) String() string { func (Pipe) String() string {
return "Artifactory" return "artifactory"
} }
// Default sets the pipe defaults // Default sets the pipe defaults

View File

@@ -16,7 +16,7 @@ type Pipe struct{}
// String is the name of this pipe // String is the name of this pipe
func (Pipe) String() string { func (Pipe) String() string {
return "Running before hooks" return "running before hooks"
} }
// Run executes the hooks // Run executes the hooks

View File

@@ -15,7 +15,7 @@ type Pipe struct{}
// String returns the description of the pipe // String returns the description of the pipe
func (Pipe) String() string { func (Pipe) String() string {
return "Blob" return "blobs"
} }
// Default sets the pipe defaults // Default sets the pipe defaults

View File

@@ -26,7 +26,7 @@ var ErrNoDocker = errors.New("docker not present in $PATH")
type Pipe struct{} type Pipe struct{}
func (Pipe) String() string { func (Pipe) String() string {
return "Docker images" return "docker images"
} }
// Default sets the pipe defaults // Default sets the pipe defaults

View File

@@ -30,7 +30,7 @@ const defaultNameTemplate = "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arc
type Pipe struct{} type Pipe struct{}
func (Pipe) String() string { func (Pipe) String() string {
return "Linux packages with nfpm" return "linux packages"
} }
// Default sets the pipe defaults // Default sets the pipe defaults

View File

@@ -26,7 +26,7 @@ var ErrMultipleReleases = errors.New("multiple releases are defined. Only one is
type Pipe struct{} type Pipe struct{}
func (Pipe) String() string { func (Pipe) String() string {
return "GitHub/GitLab/Gitea Releases" return "github/gitlab/gitea releases"
} }
// Default sets the pipe defaults // Default sets the pipe defaults

View File

@@ -25,7 +25,7 @@ var ErrTokenTypeNotImplementedForScoop = errors.New("token type not implemented
type Pipe struct{} type Pipe struct{}
func (Pipe) String() string { func (Pipe) String() string {
return "scoop manifest" return "scoop manifests"
} }
// Publish scoop manifest // Publish scoop manifest

View File

@@ -13,7 +13,7 @@ type Pipe struct{}
// String is the name of this pipe // String is the name of this pipe
func (Pipe) String() string { func (Pipe) String() string {
return "Parsing tag" return "parsing tag"
} }
// Run executes the hooks // Run executes the hooks

View File

@@ -61,7 +61,7 @@ const defaultNameTemplate = "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arc
type Pipe struct{} type Pipe struct{}
func (Pipe) String() string { func (Pipe) String() string {
return "Snapcraft Packages" return "snapcraft packages"
} }
// Default sets the pipe defaults // Default sets the pipe defaults

View File

@@ -17,7 +17,7 @@ type Pipe struct{}
// String returns the description of the pipe // String returns the description of the pipe
func (Pipe) String() string { func (Pipe) String() string {
return "HTTP Upload" return "http upload"
} }
// Default sets the pipe defaults // Default sets the pipe defaults