Skip to content

Commit 139edd1

Browse files
committed
spinner
1 parent 8413d8c commit 139edd1

File tree

296 files changed

+156820
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

296 files changed

+156820
-0
lines changed

command/report.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ import (
1111
"os"
1212
"regexp"
1313
"strings"
14+
"time"
1415

16+
"github.com/briandowns/spinner"
1517
"github.com/git-time-metric/gtm/project"
1618
"github.com/git-time-metric/gtm/report"
1719
"github.com/git-time-metric/gtm/scm"
@@ -209,6 +211,9 @@ func (c ReportCmd) Run(args []string) int {
209211
Color: color,
210212
Limit: limit}
211213

214+
s := spinner.New(spinner.CharSets[9], 100*time.Millisecond)
215+
s.Start()
216+
212217
switch format {
213218
case "project":
214219
out, err = report.ProjectSummary(projCommits, options)
@@ -224,6 +229,8 @@ func (c ReportCmd) Run(args []string) int {
224229
out, err = report.TimelineCommits(projCommits, options)
225230
}
226231

232+
s.Stop()
233+
227234
if err != nil {
228235
c.Ui.Error(err.Error())
229236
return 1

vendor/github.com/briandowns/spinner/LICENSE

Lines changed: 174 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/briandowns/spinner/character_sets.go

Lines changed: 59 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)