Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Commit

Permalink
fix(logging): progress bar in remove cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz committed Feb 26, 2024
1 parent 1428b8b commit b4f3163
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/layer/remove/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/spf13/cobra"
"github.com/ublue-os/bext/internal"
"github.com/ublue-os/bext/pkg/fileio"
"github.com/ublue-os/bext/pkg/logging"
percent "github.com/ublue-os/bext/pkg/percentmanager"
)

Expand Down Expand Up @@ -38,6 +39,7 @@ func removeCmd(cmd *cobra.Command, args []string) error {
pw := percent.NewProgressWriter()
if !*internal.Config.NoProgress {
go pw.Render()
slog.SetDefault(logging.NewMuteLogger())
}

if len(args) < 1 {
Expand Down

0 comments on commit b4f3163

Please sign in to comment.