Skip to content

Commit

Permalink
πŸ› mg-stripe: Change where copy spinner starts
Browse files Browse the repository at this point in the history
When using the `--dry-run` flag, the spinner starts too soon and obstructs the next account question.
  • Loading branch information
PaulAdamDavis committed Jan 27, 2025
1 parent 50d6ba6 commit 24b9f0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/mg-stripe/src/lib/commands/copy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ export async function copy(options: Options) {
// Get delay
const delay = (options.dryRun) ? 1 : (await new DelayPrompt().ask(options.delay));

Logger.shared.startSpinner('');
if (!options.dryRun) {
Logger.shared.startSpinner('');
}

if (!options.dryRun) {
Logger.shared.succeed(`No payments will be collected for the next ${chalk.green(delay)} hour(s)`);
Expand Down

0 comments on commit 24b9f0a

Please sign in to comment.