Merge pull request #45 from Kaelio/luca/klo-654-improve-indents

feat(cli): add box-drawing prefixes to setup messages
This commit is contained in:
Luca Martial 2026-05-12 19:58:55 -04:00 committed by GitHub
commit fcdf5234c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 81 additions and 47 deletions

View file

@ -58,10 +58,10 @@ function connectionNamePrompt(label: string): string {
function textInputPrompt(message: string): string {
const normalized = message.replace(/\n+$/, '');
if (!normalized.includes('\n')) {
return `${normalized}\nPress Escape to go back.\n`;
return `${normalized}\nPress Escape to go back.\n`;
}
const [title, ...bodyLines] = normalized.split('\n');
return `${title}\n\n${bodyLines.join('\n')}\nPress Escape to go back.\n`;
return `${title}\n\n${bodyLines.join('\n')}\nPress Escape to go back.\n`;
}
const legacyHistoricSqlServiceAccountPatternsKey = ['serviceAccount', 'UserPatterns'].join('');