Skip to content

Commit

Permalink
cmd/mecha: a better looking spinner
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Mar 8, 2024
1 parent ed69251 commit d50c59a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/mecha/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func build(cCtx *cli.Context) error {
}

func buildModule(modulesPath, name string) error {
s := spinner.New(spinner.CharSets[17], 100*time.Millisecond, spinner.WithWriter(os.Stdout))
s := spinner.New(spinner.CharSets[5], 100*time.Millisecond, spinner.WithWriter(os.Stdout))
s.Suffix = " Building module " + name
s.FinalMSG = "Done.\n"
s.Start()
Expand Down
2 changes: 1 addition & 1 deletion cmd/mecha/flash.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func flash(cCtx *cli.Context) error {

targetName := cCtx.Args().First()

s := spinner.New(spinner.CharSets[17], 100*time.Millisecond, spinner.WithWriter(os.Stdout))
s := spinner.New(spinner.CharSets[5], 100*time.Millisecond, spinner.WithWriter(os.Stdout))
s.Suffix = " Building application for " + targetName + " using interpreter " + cCtx.String("interpreter")
s.FinalMSG = "Application built. Now flashing...\n"
s.Start()
Expand Down

0 comments on commit d50c59a

Please sign in to comment.