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

Commit

Permalink
move spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Dec 22, 2023
1 parent 58d9b98 commit f623c0f
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 @@ -260,16 +260,16 @@ func initProject(cli *cli.Context) (*project.Project, error) {
return nil, 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)
if err != nil {
return nil, err
}
spin.Stop()
}
spin.Stop()

p, err := project.New(&project.ProjectConfig{
Version: version,
Expand Down

0 comments on commit f623c0f

Please sign in to comment.