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

Method write_activity

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

Set the status of the operation and write the progress # Arguments `status` - The status of the operation

(&mut self, activity: &str)

Source from the content-addressed store, hash-verified

172 /// * `status` - The status of the operation
173 ///
174 pub fn write_activity(&mut self, activity: &str) {
175 match self.format {
176 ProgressFormat::Json => {
177 self.progress_value.activity = Some(activity.to_string());
178 self.write_json();
179 },
180 ProgressFormat::Default => {
181 self.console_bar.pb_set_message(activity);
182 },
183 ProgressFormat::None => {}
184 }
185 }
186
187 /// Set the number of total items to complete
188 ///

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