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

Function byte_progress_style

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

Get the byte-progress bar style. Format: `⠋ [████████░░░░░░░░] 1.5 MB/3.0 MB Message (50%)`

()

Source from the content-addressed store, hash-verified

351///
352/// Format: `⠋ [████████░░░░░░░░] 1.5 MB/3.0 MB Message (50%)`
353fn byte_progress_style() -> ProgressStyle {
354 ProgressStyle::with_template(
355 "{spinner:.cyan} [{bar:30.cyan/dim}] {bytes}/{total_bytes} {msg} ({percent}%)",
356 )
357 .expect("Invalid byte progress template")
358 .tick_chars(SPINNER_CHARS)
359 .progress_chars("█▓░")
360}
361
362/// Get the warning completion style.
363///

Callers 2

create_byte_progress_barFunction · 0.85
test_styles_dont_panicFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_styles_dont_panicFunction · 0.68