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§
- This module provides reusable
clap
arguments for common tasks in Scarb ecosystem. - This module provides various ready to use message types and widgets for use with a
Ui
.
Structs§
- Formats bytes for human readability using ISO/IEC prefixes
- Formats bytes for human readability using SI prefixes
- Wraps an std duration for human basic formatting.
- Formats bytes for human readability
- Formats counts for human readability using commas
- Wraps an std duration for human readable formatting.
- Formats counts for human readability using commas for floats
- An abstraction around console output which stores preferences for output format (human vs JSON), colour, etc.
Enums§
- The requested format of output (either textual or JSON).
- The requested verbosity of output.
Traits§
- A typed object that can be either printed as a human-readable message or serialized as JSON.
- A persistent message that is only usable for humans, for example a spinner.