Restore Spinner
This commit is contained in:
+5
-1
@@ -69,6 +69,10 @@ func (s *spinner) start(text string) {
|
|||||||
s.text = text
|
s.text = text
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if s.on {
|
||||||
|
s.text = text
|
||||||
|
return
|
||||||
|
}
|
||||||
s.on = true
|
s.on = true
|
||||||
s.text = text
|
s.text = text
|
||||||
go s.run()
|
go s.run()
|
||||||
@@ -573,7 +577,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.update("Build HAKs: starting")
|
spin.start("Build HAKs: starting")
|
||||||
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