What is scarb-ui
mainThe scarb-ui crate provides terminal user interface (TUI) primitives used by Scarb and its extensions. It serves two primary purposes:
- User Communication: It provides a unified interface for interacting with users. Depending on the runtime configuration, it can either:
- Render human-readable messages and interactive widgets for terminal users.
- Print machine-parseable JSON-NL (JSON Newline) messages for automated tools.
- CLI Argument Reuse: It provides reusable
claparguments for common tasks to ensure consistency across Scarb extensions.