Files
diodeinc__pcb/crates/pcb-ui
Lenny Khazan 9ca4474a81 Handle closed CLI output pipes (#1112)
* fix: handle closed CLI output pipes

Amp-Thread-ID: https://ampcode.com/threads/T-01a04c02-604b-776e-8969-5bf3bac7ea8e

* docs: document CLI output handling

Amp-Thread-ID: https://ampcode.com/threads/T-01a04c02-604b-776e-8969-5bf3bac7ea8e

* docs: simplify CLI output guidance

Amp-Thread-ID: https://ampcode.com/threads/T-01a04c02-604b-776e-8969-5bf3bac7ea8e
2026-08-30 18:40:56 +00:00
..
2026-07-21 14:22:42 -04:00
2026-07-21 14:22:42 -04:00

pcb-ui

pcb-ui provides the terminal spinners, progress bars, status styles, and text utilities used by the PCB CLI.

Spinners and progress bars write to standard error. Completion methods consume the active indicator, and suspend hides it while the application prompts for input. Text helpers provide width-aware truncation, padding, and alignment.

The crate exposes its common types through pcb_ui::prelude.

cargo test -p pcb-ui