You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[plan] Replace direct styles.X.Render() calls in compile_schedule_calendar.go and compile_stats.go with applyStyleWithTTY #43579
Refactor the two files that call styles.X.Render() directly — pkg/cli/compile_schedule_calendar.go and pkg/cli/compile_stats.go — to use applyStyleWithTTY (or the appropriate exported/internal variant) consistently with the rest of the codebase.
Context
Identified in Terminal Stylist analysis: discussion #43520. Both callsites are already guarded by isTerminal / tty.IsStderrTerminal() checks, so they are functionally correct. The issue is stylistic/architectural inconsistency: the rest of the codebase uses applyStyle/applyStyleWithTTY from pkg/console/, not naked styles.X.Render().
Implementation Plan
Files to Modify
pkg/cli/compile_schedule_calendar.go lines 252, 264: styles.TableHeader.Render(header) and styles.TableHeader.Render(label)
Activity