From 53e8e14cbf8a26dd7cdfd44e7753769974e9eead Mon Sep 17 00:00:00 2001 From: Cheng Liu Date: Mon, 4 Mar 2024 20:26:04 -0800 Subject: [PATCH] Update apps/sparo-lib/src/services/SparoProfileService.ts Co-authored-by: Pete Gonzalez <4673363+octogonz@users.noreply.github.com> --- apps/sparo-lib/src/services/SparoProfileService.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/sparo-lib/src/services/SparoProfileService.ts b/apps/sparo-lib/src/services/SparoProfileService.ts index 188f06a..10c605f 100644 --- a/apps/sparo-lib/src/services/SparoProfileService.ts +++ b/apps/sparo-lib/src/services/SparoProfileService.ts @@ -238,12 +238,16 @@ ${availableProfiles.join(',')} }): Promise { this._localState.reset(); const allProfiles: string[] = Array.from([...(profiles ?? []), ...(addProfiles ?? [])]); - if (allProfiles.length) { + if (allProfiles.length > 1) { this._terminalService.terminal.writeLine( - `Syncing local sparse checkout state with following specified profiles:\n${allProfiles.join('\n')}` + `Syncing checkout with these Sparo profiles:\n${allProfiles.join(', ')}` + ); + } else if (allProfiles.length === 1) { + this._terminalService.terminal.writeLine( + `Syncing checkout with the Sparo profile: ${allProfiles[0]}` ); } else { - this._terminalService.terminal.writeLine('Syncing local sparse checkout state with no profile'); + this._terminalService.terminal.writeLine('Syncing checkout with the Sparo skeleton (no profile selection)'); } this._terminalService.terminal.writeLine(); if (!profiles || profiles.size === 0) {