Expand description
Terminal user interface primitives used by Scarb and its extensions.
This crate focuses mainly on two areas:
Ui
andcomponents
: Serving a unified interface for communication with the user, either via:- rendering human-readable messages or interactive widgets,
- or printing machine-parseable JSON-NL messages, depending on runtime configuration.
args
: Providing reusableclap
arguments for common tasks.
There are also re-export from various TUI crates recommended for use in Scarb ecosystem,
such as indicatif
or console
.
Modules§
- args
- This module provides reusable
clap
arguments for common tasks in Scarb ecosystem. - components
- This module provides various ready to use message types and widgets for use with
a
Ui
.
Structs§
- Binary
Bytes - Formats bytes for human readability using ISO/IEC prefixes
- Decimal
Bytes - Formats bytes for human readability using SI prefixes
- Formatted
Duration - Wraps an std duration for human basic formatting.
- Human
Bytes - Formats bytes for human readability
- Human
Count - Formats counts for human readability using commas
- Human
Duration - Wraps an std duration for human readable formatting.
- Human
Float Count - Formats counts for human readability using commas for floats
- Ui
- An abstraction around console output which stores preferences for output format (human vs JSON), colour, etc.
Enums§
- Output
Format - The requested format of output (either textual or JSON).
- Verbosity
- The requested verbosity of output.