Merge pull request #202 from kaitranntt/fix/status-line-colors-init

fix(ui): initialize colors early for consistent status output
This commit is contained in:
Kai (Tam Nhu) Tran authored and GitHub committed 2025-12-25 05:04:11 -05:00
commit 7cf79732b1
1 file changed
+7
+7
View File
@@ -255,6 +255,13 @@ async function main(): Promise<void> {
const args = process.argv.slice(2);
const firstArg = args[0];
// Initialize UI colors early to ensure consistent colored output
// Must happen before any status messages (ok, info, fail, etc.)
if (process.stdout.isTTY && !process.env['CI']) {
const { initUI } = await import('./utils/ui');
await initUI();
}
// Trigger update check early for ALL commands except version/help/update
// Only if TTY and not CI to avoid noise in automated environments
const skipUpdateCheck = [