Skip to content

Commit

Permalink
Replace task emoji.
Browse files Browse the repository at this point in the history
  • Loading branch information
gnutix committed Nov 13, 2023
1 parent 5f5c594 commit 363004e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ var watchCmd = &cobra.Command{
}

if last {
return fmt.Sprintf("%s%s (🧮 %d)", lo.Ternary(partial, "… ", ""), strings.Join(nItems, " "), nbItems)
return fmt.Sprintf("%s%s (📝 %d)", lo.Ternary(partial, "… ", ""), strings.Join(nItems, " "), nbItems)
}
return fmt.Sprintf("%s%s (🧮 %d)", strings.Join(nItems, " "), lo.Ternary(partial, " …", ""), nbItems)
return fmt.Sprintf("%s%s (📝 %d)", strings.Join(nItems, " "), lo.Ternary(partial, " …", ""), nbItems)
}

var stats, timestamp string
Expand All @@ -68,7 +68,7 @@ var watchCmd = &cobra.Command{
msg, err := c.Recv()
if err != nil {
if err == io.EOF {
spinner.Success(fmt.Sprintf("Job '%s' completed (🧮 %d, %s)\n%s", args[0], len(tasks), timestamp, stats))
spinner.Success(fmt.Sprintf("Job '%s' completed (📝 %d, %s)\n%s", args[0], len(tasks), timestamp, stats))
return nil
}
spinner.Fail()
Expand Down Expand Up @@ -130,7 +130,7 @@ var watchCmd = &cobra.Command{
timestamp = fmt.Sprintf("⏱️ %s", time.Since(msg.ScheduledAt.AsTime()).Truncate(time.Second))
}

spinner.UpdateMessage(fmt.Sprintf("Job '%s' running (🧮 %d, %s)\n%s", args[0], len(tasks), timestamp, stats))
spinner.UpdateMessage(fmt.Sprintf("Job '%s' running (📝 %d, %s)\n%s", args[0], len(tasks), timestamp, stats))
}
},
}

0 comments on commit 363004e

Please sign in to comment.