Skip to content

Commit

Permalink
Remove artificial loading times
Browse files Browse the repository at this point in the history
  • Loading branch information
nhh committed Sep 28, 2024
1 parent 39edd94 commit 8a63f81
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions cmd/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ package cmd
import (
"bytes"
"fmt"
spinner2 "github.com/kubernetix/k8x/v1/internal/spinner"
"github.com/spf13/cobra"
"os"
"path"
"text/template"
"time"
)

func init() {
Expand Down Expand Up @@ -89,15 +87,6 @@ var newCmd = &cobra.Command{
panic(err)
}

spinner := spinner2.NewSpinner()

for i := 0; i < 50; i++ {
time.Sleep(100 * time.Millisecond)
fmt.Printf("\033[2K")
fmt.Println()
fmt.Printf("\033[1A")
fmt.Printf("%s Initializing chart....", spinner.String())
}
fmt.Println("Success!")
fmt.Println("Initialized chart....")
},
}

0 comments on commit 8a63f81

Please sign in to comment.