Skip to content

Commit

Permalink
use progress success function
Browse files Browse the repository at this point in the history
  • Loading branch information
jokestax committed Sep 16, 2024
1 parent bd66936 commit fa588cb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cmd/reset.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"strconv"
"time"

"github.com/charmbracelet/glamour"
"github.com/konstructio/kubefirst-api/pkg/progressPrinter"
utils "github.com/konstructio/kubefirst-api/pkg/utils"
"github.com/konstructio/kubefirst/internal/progress"
Expand All @@ -34,10 +33,8 @@ var resetCmd = &cobra.Command{
switch v := checksMap.(type) {
case nil:
// Handle the nil case explicitly
in := `# Successfully reset`
out, _ := glamour.Render(in, "dark")
fmt.Print(out)
progress.Progress.Quit()
message := `# Succesfully reset`
progress.Success(message)
return nil
case string:
if v == "" {
Expand Down

0 comments on commit fa588cb

Please sign in to comment.