Skip to content

Commit

Permalink
feat: new Hamburger + Meter spinners (#172)
Browse files Browse the repository at this point in the history
Co-authored-by: Maas Lalani <maas@lalani.dev>
  • Loading branch information
wesleimp and maaslalani committed Jun 21, 2022
1 parent 93e4642 commit 658a4fe
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions spinner/spinner.go
Expand Up @@ -67,6 +67,22 @@ var (
Frames: []string{"🙈", "🙉", "🙊"},
FPS: time.Second / 3, //nolint:gomnd
}
Meter = Spinner{
Frames: []string{
"▱▱▱",
"▰▱▱",
"▰▰▱",
"▰▰▰",
"▰▰▱",
"▰▱▱",
"▱▱▱",
},
FPS: time.Second / 7, //nolint:gomnd
}
Hamburger = Spinner{
Frames: []string{"☱", "☲", "☴", "☲"},
FPS: time.Second / 3, //nolint:gomnd
}
)

// Model contains the state for the spinner. Use NewModel to create new models
Expand Down

0 comments on commit 658a4fe

Please sign in to comment.