Skip to content

Commit

Permalink
Update apps/sparo-lib/src/services/SparoProfileService.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Pete Gonzalez <[email protected]>
  • Loading branch information
chengcyber and octogonz authored Mar 5, 2024
1 parent 2a1bff5 commit 53e8e14
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions apps/sparo-lib/src/services/SparoProfileService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,16 @@ ${availableProfiles.join(',')}
}): Promise<void> {
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) {
Expand Down

0 comments on commit 53e8e14

Please sign in to comment.