fix: clean wrapped banner tagline

This commit is contained in:
Peter Steinberger
2026-01-24 01:26:17 +00:00
parent 350131b4d7
commit aabe0bed30
3 changed files with 5 additions and 2 deletions

View File

@@ -51,14 +51,14 @@ export function formatCliBannerLine(version: string, options: BannerOptions = {}
const line1 = `${theme.heading(title)} ${theme.info(version)} ${theme.muted(
`(${commitLabel})`,
)}`;
const line2 = `${" ".repeat(prefix.length)}${theme.muted("—")} ${theme.accentDim(tagline)}`;
const line2 = `${" ".repeat(prefix.length)}${theme.accentDim(tagline)}`;
return `${line1}\n${line2}`;
}
if (fitsOnOneLine) {
return plainFullLine;
}
const line1 = `${title} ${version} (${commitLabel})`;
const line2 = `${" ".repeat(prefix.length)}${tagline}`;
const line2 = `${" ".repeat(prefix.length)}${tagline}`;
return `${line1}\n${line2}`;
}