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

Function set_position

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

Set the position of a progress bar. # Arguments `pb` - The progress bar `pos` - The new position

(pb: &ProgressBar, pos: u64)

Source from the content-addressed store, hash-verified

356/// * `pb` - The progress bar
357/// * `pos` - The new position
358pub fn set_position(pb: &ProgressBar, pos: u64) {
359 pb.set_position(pos);
360}
361
362/// Set the message of a progress bar.
363///

Callers 1

Calls 1

set_positionMethod · 0.80

Tested by 1