Skip to content

Commit

Permalink
Stops the spinner for setup prompts. Closes #5598
Browse files Browse the repository at this point in the history
  • Loading branch information
waldekmastykarz authored and Adam-it committed Oct 28, 2023
1 parent 979cc55 commit 2c09ab4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/m365/commands/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ class SetupCommand extends AnonymousCommand {
return;
}

// stop the spinner. Fixes #5598
Cli.getInstance().spinner.stop();

await logger.logToStderr(`Welcome to the CLI for Microsoft 365 setup!`);
await logger.logToStderr(`This command will guide you through the process of configuring the CLI for your needs.`);
await logger.logToStderr(`Please, answer the following questions and we'll define a set of settings to best match how you intend to use the CLI.`);
Expand Down Expand Up @@ -156,6 +159,9 @@ class SetupCommand extends AnonymousCommand {
await logger.logToStderr('Configuring settings...');
await logger.logToStderr('');

// start the spinner. Fixes #5598
Cli.getInstance().spinner.start();

await this.configureSettings(settings, false, logger);

if (!this.verbose) {
Expand Down

0 comments on commit 2c09ab4

Please sign in to comment.