2026-03-12 10:02:00 -06:00
|
|
|
/**
|
|
|
|
|
* Shared GSD block-letter ASCII logo.
|
|
|
|
|
*
|
|
|
|
|
* Single source of truth — imported by:
|
|
|
|
|
* - scripts/postinstall.js (via dist/logo.js)
|
2026-03-12 15:18:06 -06:00
|
|
|
* - src/loader.ts (via ./logo.js)
|
2026-03-12 10:02:00 -06:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/** Raw logo lines — no ANSI codes, no leading newline. */
|
2026-03-12 15:18:06 -06:00
|
|
|
export const GSD_LOGO: readonly string[] = [
|
2026-03-12 10:02:00 -06:00
|
|
|
' ██████╗ ███████╗██████╗ ',
|
|
|
|
|
' ██╔════╝ ██╔════╝██╔══██╗',
|
|
|
|
|
' ██║ ███╗███████╗██║ ██║',
|
|
|
|
|
' ██║ ██║╚════██║██║ ██║',
|
|
|
|
|
' ╚██████╔╝███████║██████╔╝',
|
|
|
|
|
' ╚═════╝ ╚══════╝╚═════╝ ',
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Render the logo block with a color function applied to each line.
|
|
|
|
|
*
|
2026-03-12 15:18:06 -06:00
|
|
|
* @param color — e.g. `(s) => `\x1b[36m${s}\x1b[0m`` or picocolors.cyan
|
2026-03-12 10:02:00 -06:00
|
|
|
* @returns Ready-to-write string with leading/trailing newlines.
|
|
|
|
|
*/
|
|
|
|
|
export function renderLogo(color: (s: string) => string): string {
|
|
|
|
|
return '\n' + GSD_LOGO.map(color).join('\n') + '\n'
|
|
|
|
|
}
|