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

Function progress_style

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

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

()

Source from the content-addressed store, hash-verified

300///
301/// Format: `[████████░░░░░░░░] 50/100 Message (50%)`
302fn progress_style() -> ProgressStyle {
303 ProgressStyle::with_template(
304 "{spinner:.cyan} [{bar:30.cyan/dim}] {pos}/{len} {msg} ({percent}%)",
305 )
306 .expect("Invalid progress template")
307 .tick_chars(SPINNER_CHARS)
308 .progress_chars("█▓░")
309}
310
311/// Get the success completion style.
312///

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