Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
cleaner spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Dec 22, 2023
1 parent 48534cc commit 594c509
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/sst/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,16 +237,16 @@ func main() {
return err
}

spin := spinner.New(spinner.CharSets[14], 100*time.Millisecond)
spin.Suffix = " Installing dependencies..."
spin.Start()
if !project.CheckDeps(version, cfgPath) {
spin := spinner.New(spinner.CharSets[14], 100*time.Millisecond)
spin.Suffix = " Installing dependencies..."
spin.Start()
err = project.InstallDeps(version, cfgPath)
spin.Stop()
if err != nil {
return err
}
}
spin.Stop()

color.New(color.FgGreen, color.Bold).Print("✔")
color.New(color.FgWhite, color.Bold).Println(" Created new project with '", template, "' template")
Expand Down

0 comments on commit 594c509

Please sign in to comment.