From 658a4febc760ba0d18a40817c0a83fbc18aeed9b Mon Sep 17 00:00:00 2001 From: Weslei Juan Novaes Pereira <42675056+wesleimp@users.noreply.github.com> Date: Tue, 21 Jun 2022 09:59:23 -0300 Subject: [PATCH] feat: new Hamburger + Meter spinners (#172) Co-authored-by: Maas Lalani --- spinner/spinner.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/spinner/spinner.go b/spinner/spinner.go index c6cdb3c..d08b3d1 100644 --- a/spinner/spinner.go +++ b/spinner/spinner.go @@ -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