MCPcopy Create free account
hub / github.com/PowerShell/DSC / write_increment

Method write_increment

lib/dsc-lib/src/progress.rs:122–133  ·  view source on GitHub ↗

Increment the progress bar by the specified amount and write the progress # Arguments `delta` - The amount to increment the progress bar by

(&mut self, delta: u64)

Source from the content-addressed store, hash-verified

120 /// * `delta` - The amount to increment the progress bar by
121 ///
122 pub fn write_increment(&mut self, delta: u64) {
123 if self.format == ProgressFormat::None {
124 return;
125 }
126
127 self.progress_value.completed_items += delta;
128 if self.format == ProgressFormat::Json {
129 self.write_json();
130 } else {
131 self.console_bar.pb_inc(delta);
132 }
133 }
134
135 /// Set the resource being operated on
136 ///

Callers 6

discoverMethod · 0.80
invoke_getMethod · 0.80
invoke_setMethod · 0.80
invoke_testMethod · 0.80
invoke_exportMethod · 0.80

Calls 1

write_jsonMethod · 0.80

Tested by

no test coverage detected