Match help output colors to Pi TUI theme

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Advait Paliwal
2026-03-25 00:40:43 -07:00
parent 7024a86024
commit 4eeccafed0

View File

@@ -43,7 +43,10 @@ const TOP_LEVEL_COMMANDS = new Set(topLevelCommandNames);
function printHelpLine(usage: string, description: string): void { function printHelpLine(usage: string, description: string): void {
const width = 30; const width = 30;
const padding = Math.max(1, width - usage.length); const padding = Math.max(1, width - usage.length);
printInfo(`${usage}${" ".repeat(padding)}${description}`); const RESET = "\x1b[0m";
const SAGE = `\x1b[38;2;167;192;128m`;
const ASH = `\x1b[38;2;133;146;137m`;
console.log(` ${SAGE}${usage}${RESET}${" ".repeat(padding)}${ASH}${description}${RESET}`);
} }
function printHelp(appRoot: string): void { function printHelp(appRoot: string): void {