MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / progress_style

Function progress_style

atomic-cli/src/output/progress.rs:323–330  ·  view source on GitHub ↗

Get the default progress bar style. Format: `[████████░░░░░░░░] 50/100 Message (50%)`

()

Source from the content-addressed store, hash-verified

321///
322/// Format: `[████████░░░░░░░░] 50/100 Message (50%)`
323fn progress_style() -> ProgressStyle {
324 ProgressStyle::with_template(
325 "{spinner:.cyan} [{bar:30.cyan/dim}] {pos}/{len} {msg} ({percent}%)",
326 )
327 .expect("Invalid progress template")
328 .tick_chars(SPINNER_CHARS)
329 .progress_chars("█▓░")
330}
331
332/// Get the success completion style.
333///

Callers 3

create_progress_barFunction · 0.85
add_progress_barFunction · 0.85
test_styles_dont_panicFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_styles_dont_panicFunction · 0.68