File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 55require (
66 github.com/AlecAivazis/survey/v2 v2.0.5
77 github.com/alecthomas/chroma v0.7.1 // indirect
8+ github.com/briandowns/spinner v1.9.0
89 github.com/charmbracelet/glamour v0.1.1-0.20200210132808-8d4e3f0692f8
910 github.com/dlclark/regexp2 v1.2.0 // indirect
1011 github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRF
2727github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6 /go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8 =
2828github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973 /go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q =
2929github.com/beorn7/perks v1.0.0 /go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8 =
30+ github.com/briandowns/spinner v1.9.0 h1:+OMAisemaHar1hjuJ3Z2hIvNhQl9Y7GLPWUwwz2Pxo8 =
31+ github.com/briandowns/spinner v1.9.0 /go.mod h1://Zf9tMcxfRUA36V23M6YGEAv+kECGfvpnLTnb8n4XQ =
3032github.com/cespare/xxhash v1.1.0 /go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc =
3133github.com/charmbracelet/glamour v0.1.1-0.20200210132808-8d4e3f0692f8 h1:udjWAc2bbIP0LyzEMt7BWxk6O6lIoONWoonN3C9bMtA =
3234github.com/charmbracelet/glamour v0.1.1-0.20200210132808-8d4e3f0692f8 /go.mod h1:UsY1vFbaLp/j/SYgLfPH0n2I0jngBL+q6+mCAsESih4 =
@@ -50,6 +52,8 @@ github.com/dlclark/regexp2 v1.1.6 h1:CqB4MjHw0MFCDj+PHHjiESmHX+N7t0tJzKvC6M97BRg
5052github.com/dlclark/regexp2 v1.1.6 /go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc =
5153github.com/dlclark/regexp2 v1.2.0 h1:8sAhBGEM0dRWogWqWyQeIJnxjWO6oIjl8FKqREDsGfk =
5254github.com/dlclark/regexp2 v1.2.0 /go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc =
55+ github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys =
56+ github.com/fatih/color v1.7.0 /go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4 =
5357github.com/fsnotify/fsnotify v1.4.7 /go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo =
5458github.com/ghodss/yaml v1.0.0 /go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04 =
5559github.com/go-kit/kit v0.8.0 /go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as =
Original file line number Diff line number Diff line change 55 "strings"
66 "time"
77
8+ "github.com/briandowns/spinner"
89 "github.com/charmbracelet/glamour"
910 "github.com/cli/cli/pkg/browser"
1011)
@@ -59,3 +60,7 @@ func FuzzyAgo(ago time.Duration) string {
5960
6061 return fmtDuration (int (ago .Hours ()/ 24 / 365 ), "year" )
6162}
63+
64+ func Spinner () * spinner.Spinner {
65+ return spinner .New (spinner .CharSets [11 ], 400 * time .Millisecond )
66+ }
You can’t perform that action at this time.
0 commit comments