From 2c09ab4d7dcb02aeec639451d9cbf2e1726cc9ba Mon Sep 17 00:00:00 2001 From: Waldek Mastykarz Date: Sat, 28 Oct 2023 15:54:19 +0200 Subject: [PATCH] Stops the spinner for setup prompts. Closes #5598 --- src/m365/commands/setup.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/m365/commands/setup.ts b/src/m365/commands/setup.ts index 95705c895b8..6cffc744786 100644 --- a/src/m365/commands/setup.ts +++ b/src/m365/commands/setup.ts @@ -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.`); @@ -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) {