Skip to content

Commit 5d7962f

Browse files
committed
chore: fixup
1 parent 8251dbf commit 5d7962f

3 files changed

Lines changed: 4 additions & 13 deletions

File tree

go.mod

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ require (
88
dario.cat/mergo v1.0.2 // BSD 3-Clause
99
github.com/BurntSushi/toml v1.6.0 // MIT
1010
github.com/Masterminds/semver/v3 v3.4.0 // MIT
11-
github.com/briandowns/spinner v1.23.2
1211
github.com/charmbracelet/bubbles v0.21.1-0.20250623103423-23b8fd6302d7 // MIT
1312
github.com/charmbracelet/bubbletea v1.3.10 // MIT
1413
github.com/charmbracelet/huh v0.8.0
@@ -94,7 +93,6 @@ require (
9493
go.opentelemetry.io/otel/metric v1.38.0 // indirect
9594
go.opentelemetry.io/otel/trace v1.38.0 // indirect
9695
golang.org/x/net v0.48.0 // indirect
97-
golang.org/x/term v0.39.0 // indirect
9896
golang.org/x/time v0.13.0 // indirect
9997
google.golang.org/api v0.249.0 // indirect
10098
google.golang.org/genproto/googleapis/rpc v0.0.0-20250922171735-9219d122eba9 // indirect

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiE
2424
github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8=
2525
github.com/aymanbagabas/go-udiff v0.3.1 h1:LV+qyBQ2pqe0u42ZsUEtPiCaUoqgA9gYRDs3vj1nolY=
2626
github.com/aymanbagabas/go-udiff v0.3.1/go.mod h1:G0fsKmG+P6ylD0r6N/KgQD/nWzgfnl8ZBcNLgcbrw8E=
27-
github.com/briandowns/spinner v1.23.2 h1:Zc6ecUnI+YzLmJniCfDNaMbW0Wid1d5+qcTq4L2FW8w=
28-
github.com/briandowns/spinner v1.23.2/go.mod h1:LaZeM4wm2Ywy6vO571mvhQNRcWfRUnXOs0RcKV0wYKM=
2927
github.com/catppuccin/go v0.3.0 h1:d+0/YicIq+hSTo5oPuRi5kOpqkVA5tAsU6dNhvRu+aY=
3028
github.com/catppuccin/go v0.3.0/go.mod h1:8IHJuMGaUUjQM82qBrGNBv7LFq6JI3NnQCF6MOlZjpc=
3129
github.com/charmbracelet/bubbles v0.21.1-0.20250623103423-23b8fd6302d7 h1:JFgG/xnwFfbezlUnFMJy0nusZvytYysV4SCS2cYbvws=

libs/apps/validation/nodejs.go

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"path/filepath"
88
"time"
99

10-
"github.com/briandowns/spinner"
1110
"github.com/databricks/cli/libs/cmdio"
1211
"github.com/databricks/cli/libs/exec"
1312
"github.com/databricks/cli/libs/log"
@@ -79,17 +78,13 @@ func (v *ValidationNodeJs) Validate(ctx context.Context, workDir string) (*Valid
7978
stepStart := time.Now()
8079
var stepErr *ValidationDetail
8180

82-
s := spinner.New(
83-
spinner.CharSets[14],
84-
80*time.Millisecond,
85-
spinner.WithColor("yellow"),
86-
spinner.WithSuffix(" "+step.displayName+"..."),
87-
)
88-
s.Start()
81+
spinner := cmdio.Spinner(ctx)
82+
spinner <- step.displayName + "..."
8983

9084
stepErr = runValidationCommand(ctx, workDir, step.command)
9185

92-
s.Stop()
86+
close(spinner)
87+
cmdio.Wait(ctx) // Wait for spinner to fully clean up and restore terminal
9388
stepDuration := time.Since(stepStart)
9489

9590
if stepErr != nil {

0 commit comments

Comments
 (0)