Skip to content

Commit

Permalink
fix: spinner and progress bar running on analysis plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jhumel-code committed Mar 20, 2024
1 parent c8e5bfa commit 1627269
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ func run(c *cobra.Command, args []string) {
}

if quiet {
// If quiet mode is enabled, suppress the spinner
spinner.Skip = true
progress.Skip = true

// If quiet mode is enabled, force the output format to JSON to avoid any issues
format = string(types.JSON)
} else {
// If quiet mode is not enabled, enable the spinner and progress bar
spinner.Skip = false
progress.Skip = false
}
params := types.Parameters{
Format: types.Format(format),
Expand Down
2 changes: 1 addition & 1 deletion internal/tea/progress/progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

var (
t *tea.Program
Skip bool
Skip = true
)

type progressWriter struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/tea/spinner/spinner.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

var (
p *tea.Program
Skip = false
Skip = true
)

type errMsg error
Expand Down

0 comments on commit 1627269

Please sign in to comment.