You've already forked goreleaser
							
							
				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:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							5efb690d1c
						
					
				
				
					commit
					81417ea989
				
			| @@ -1,8 +1,6 @@ | ||||
| package middleware | ||||
|  | ||||
| import ( | ||||
| 	"strings" | ||||
|  | ||||
| 	"github.com/apex/log" | ||||
| 	"github.com/apex/log/handlers/cli" | ||||
| 	"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(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) | ||||
| 		return next(ctx) | ||||
| 	} | ||||
|   | ||||
| @@ -40,7 +40,7 @@ type Pipe struct{} | ||||
|  | ||||
| // String returns the description of the pipe | ||||
| func (Pipe) String() string { | ||||
| 	return "Artifactory" | ||||
| 	return "artifactory" | ||||
| } | ||||
|  | ||||
| // Default sets the pipe defaults | ||||
|   | ||||
| @@ -16,7 +16,7 @@ type Pipe struct{} | ||||
|  | ||||
| // String is the name of this pipe | ||||
| func (Pipe) String() string { | ||||
| 	return "Running before hooks" | ||||
| 	return "running before hooks" | ||||
| } | ||||
|  | ||||
| // Run executes the hooks | ||||
|   | ||||
| @@ -15,7 +15,7 @@ type Pipe struct{} | ||||
|  | ||||
| // String returns the description of the pipe | ||||
| func (Pipe) String() string { | ||||
| 	return "Blob" | ||||
| 	return "blobs" | ||||
| } | ||||
|  | ||||
| // Default sets the pipe defaults | ||||
|   | ||||
| @@ -26,7 +26,7 @@ var ErrNoDocker = errors.New("docker not present in $PATH") | ||||
| type Pipe struct{} | ||||
|  | ||||
| func (Pipe) String() string { | ||||
| 	return "Docker images" | ||||
| 	return "docker images" | ||||
| } | ||||
|  | ||||
| // Default sets the pipe defaults | ||||
|   | ||||
| @@ -30,7 +30,7 @@ const defaultNameTemplate = "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arc | ||||
| type Pipe struct{} | ||||
|  | ||||
| func (Pipe) String() string { | ||||
| 	return "Linux packages with nfpm" | ||||
| 	return "linux packages" | ||||
| } | ||||
|  | ||||
| // Default sets the pipe defaults | ||||
|   | ||||
| @@ -26,7 +26,7 @@ var ErrMultipleReleases = errors.New("multiple releases are defined. Only one is | ||||
| type Pipe struct{} | ||||
|  | ||||
| func (Pipe) String() string { | ||||
| 	return "GitHub/GitLab/Gitea Releases" | ||||
| 	return "github/gitlab/gitea releases" | ||||
| } | ||||
|  | ||||
| // Default sets the pipe defaults | ||||
|   | ||||
| @@ -25,7 +25,7 @@ var ErrTokenTypeNotImplementedForScoop = errors.New("token type not implemented | ||||
| type Pipe struct{} | ||||
|  | ||||
| func (Pipe) String() string { | ||||
| 	return "scoop manifest" | ||||
| 	return "scoop manifests" | ||||
| } | ||||
|  | ||||
| // Publish scoop manifest | ||||
|   | ||||
| @@ -13,7 +13,7 @@ type Pipe struct{} | ||||
|  | ||||
| // String is the name of this pipe | ||||
| func (Pipe) String() string { | ||||
| 	return "Parsing tag" | ||||
| 	return "parsing tag" | ||||
| } | ||||
|  | ||||
| // Run executes the hooks | ||||
|   | ||||
| @@ -61,7 +61,7 @@ const defaultNameTemplate = "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arc | ||||
| type Pipe struct{} | ||||
|  | ||||
| func (Pipe) String() string { | ||||
| 	return "Snapcraft Packages" | ||||
| 	return "snapcraft packages" | ||||
| } | ||||
|  | ||||
| // Default sets the pipe defaults | ||||
|   | ||||
| @@ -17,7 +17,7 @@ type Pipe struct{} | ||||
|  | ||||
| // String returns the description of the pipe | ||||
| func (Pipe) String() string { | ||||
| 	return "HTTP Upload" | ||||
| 	return "http upload" | ||||
| } | ||||
|  | ||||
| // Default sets the pipe defaults | ||||
|   | ||||
		Reference in New Issue
	
	Block a user