Дизайн-система терминального вывода для CLI
★ 7.2 · documentation
terminal-output is a Claude Code skill that implements a terminal output design system for swamp CLI commands. It enforces consistent formatting, coloring, and structure across all swamp commands in two modes: `log` (clean, colored, human-readable, the default) and `json` (structured output for scripting and automation via the `--json` flag). The architecture separates concerns clearly: command logic in `src/cli/commands/` builds a data object, while a dedicated output file in `src/presentation/output/` exports a typed data interface and a render function that branches on `OutputMode`; user-facing output always goes through `writeOutput()`, never LogTape. The color scheme uses `@std/fmt/colors` with automatic `NO_COLOR` and `--no-color` support, defining styles for section headers, primary values, metadata, and pass/fail indicators. Intended for developers building or modifying swamp CLI commands who need uniform, testable terminal output.
- #cli-design
- #terminal-output
- #swamp
- #logging
- #user-interface
- #formatting