Expand description
Summary block renderer.
Used via the summary! macro at the end of a command run.
§Example
use cli_ui::summary;
use cli_ui::styles::{paint, CYAN, YELLOW, DIM, OK};
summary! {
done: "All assets localized",
"input" => paint(CYAN, "index.html"),
"output" => paint(CYAN, "dist/index.html"),
section,
"assets" => format!("{} remote · {} local", paint(OK, "19"), paint(OK, "0")),
"size" => paint(YELLOW, "1.64 MB"),
"time" => paint(DIM, "13034ms"),
}Output:
────────────────────────────────────────────────
DONE All assets localized
input index.html
output dist/index.html
assets 19 remote · 0 local
size 1.64 MB
time 13034ms
────────────────────────────────────────────────Structs§
- Summary
- Builder for the end-of-run summary block.