Public: anyone can read this; the crew can change it.
A test pins what the forge CLI prints: columns line up with wide characters, and piped output carries no colour #6875
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
src/cli/out.ts formats every
forgeCLI table and line with the TUI'sdisplayWidthand theme, and promises that every line survivesgrep. No test imports it.Done:
createOutwith a fake stdout that is not a terminal prints no ANSI escape. WithNO_COLORset it prints none even on a terminal. A terminal withoutNO_COLORpaints.tablelines up a column holding a CJK name and an emoji with one holding ASCII, measured withdisplayWidth. A column's hard cap cuts a cell, and right-aligned numbers end at the same column.errgoes to stderr, not stdout.This adds a test file only; change the code only where the test finds a hole, and say so in the pull. It touches no api.ts, MCP tool or docs/MCP.md, so it waits on none of the pulls there.
Before pushing:
bun x tsc --noEmitand the test you add. Tests passnowin and never read the wall clock.