Normalize Log Linebreaks
This commit is contained in:
+1
-4
@@ -246,13 +246,9 @@ func Run(args []string) (int, error) {
|
|||||||
ctx.args = append([]string{args[0]}, cmdArgs...)
|
ctx.args = append([]string{args[0]}, cmdArgs...)
|
||||||
for _, cmd := range commands {
|
for _, cmd := range commands {
|
||||||
if cmd.name == args[0] {
|
if cmd.name == args[0] {
|
||||||
spin.configure(ctx.stderr, isInteractiveTTY(ctx.stderr) && strings.TrimSpace(os.Getenv("CI")) == "" && ctx.logLevel == logLevelNormal)
|
|
||||||
spin.start("running " + cmd.name)
|
|
||||||
if err := cmd.run(ctx); err != nil {
|
if err := cmd.run(ctx); err != nil {
|
||||||
spin.stop()
|
|
||||||
return 1, err
|
return 1, err
|
||||||
}
|
}
|
||||||
spin.stop()
|
|
||||||
return 0, nil
|
return 0, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -578,6 +574,7 @@ func runBuildHAKs(ctx context) error {
|
|||||||
console := newBuildHAKConsole(ctx, p, opts)
|
console := newBuildHAKConsole(ctx, p, opts)
|
||||||
spin.configure(ctx.stderr, console.spinnerEnabled)
|
spin.configure(ctx.stderr, console.spinnerEnabled)
|
||||||
spin.start("Build HAKs: starting")
|
spin.start("Build HAKs: starting")
|
||||||
|
defer spin.stop()
|
||||||
var result pipeline.BuildResult
|
var result pipeline.BuildResult
|
||||||
pipelineOpts := pipeline.BuildHAKOptions{
|
pipelineOpts := pipeline.BuildHAKOptions{
|
||||||
Progress: console.progress,
|
Progress: console.progress,
|
||||||
|
|||||||
Reference in New Issue
Block a user