We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 333694a commit 399c016Copy full SHA for 399c016
1 file changed
pkg/pluginmanager/manager.go
@@ -11,6 +11,7 @@ import (
11
"os"
12
"os/exec"
13
"path/filepath"
14
+ "runtime"
15
"strings"
16
17
"github.com/Masterminds/semver"
@@ -64,6 +65,11 @@ var spinner component.OutputWriterSpinner
64
65
func init() {
66
// Initialize global spinner
67
spinner = component.NewOutputWriterSpinner(component.WithOutputStream(os.Stderr))
68
+ runtime.SetFinalizer(spinner, func(s component.OutputWriterSpinner) {
69
+ if s != nil {
70
+ s.StopSpinner()
71
+ }
72
+ })
73
}
74
75
func StopSpinner() {
0 commit comments