Skip to content

Commit

Permalink
chore: stopping spinner with no text skips persist
Browse files Browse the repository at this point in the history
If no text is provided to `cli.stopSpinner` then it should allow for
non-persistent usage of the spinner.
  • Loading branch information
ruyadorno committed Nov 25, 2024
1 parent cc6f1d4 commit 03936ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ export default class CLI {
}

stopSpinner(rawText, status = SUCCESS) {
if (!rawText) {
this.spinner.stop();
return;
}

let symbol;
switch (status) {
case SUCCESS:
Expand Down

0 comments on commit 03936ce

Please sign in to comment.