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

Function byte_progress_style

atomic-cli/src/output/progress.rs:332–339  ·  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

330///
331/// Format: `⠋ [████████░░░░░░░░] 1.5 MB/3.0 MB Message (50%)`
332fn byte_progress_style() -> ProgressStyle {
333 ProgressStyle::with_template(
334 "{spinner:.cyan} [{bar:30.cyan/dim}] {bytes}/{total_bytes} {msg} ({percent}%)",
335 )
336 .expect("Invalid byte progress template")
337 .tick_chars(SPINNER_CHARS)
338 .progress_chars("█▓░")
339}
340
341/// Get the warning completion style.
342///

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