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

Function create_hidden_progress

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

Create a hidden (non-visual) progress bar for tracking without display. Useful for operations where you want to track progress programmatically but don't want visual output (e.g., in non-interactive contexts). # Arguments `total` - The total number of units to track # Returns A [`ProgressBar`] that tracks position but produces no output.

(total: u64)

Source from the content-addressed store, hash-verified

157///
158/// A [`ProgressBar`] that tracks position but produces no output.
159pub fn create_hidden_progress(total: u64) -> ProgressBar {
160 let pb = ProgressBar::hidden();
161 pb.set_length(total);
162 pb
163}
164
165// Multi-Progress Support
166

Callers 1

Calls

no outgoing calls

Tested by 1