Skip to content

Commit

Permalink
Minor method rename
Browse files Browse the repository at this point in the history
  • Loading branch information
smeshkov committed Mar 31, 2024
1 parent 8a9b629 commit 5484475
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ func main() {
options = append(options, tagify.ExtraTagWeightsJSON(*extraTagWeightsJSON))
}

// print progress updates to terminal
// print progress spinner to terminal
stopCh := make(chan struct{})
var wg sync.WaitGroup
if !*verbose {
wg.Add(1)
go printProgress(stopCh, &wg)
go shellSpinner(stopCh, &wg)
}

res, err := tagify.Run(context.Background(), options...)
Expand Down Expand Up @@ -170,7 +170,7 @@ func main() {
fmt.Fprintf(os.Stdout, "%s%s\n", prfx, strings.Join(res.TagsStrings(), " "))
}

func printProgress(stopCh chan struct{}, wg *sync.WaitGroup) {
func shellSpinner(stopCh chan struct{}, wg *sync.WaitGroup) {
ticker := time.NewTicker(80 * time.Millisecond)
i := -1
symbs := []string{"|", "\\", "-", "/"}
Expand Down

0 comments on commit 5484475

Please sign in to comment.