MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / set_active

Method set_active

crates/openshell-cli/src/run.rs:332–339  ·  view source on GitHub ↗

Set the active (in-progress) step shown on the spinner.

(&mut self, label: &str)

Source from the content-addressed store, hash-verified

330
331 /// Set the active (in-progress) step shown on the spinner.
332 fn set_active(&mut self, label: &str) {
333 self.active_label = label.to_string();
334 self.active_detail.clear();
335 // Reset the spinner's elapsed time for the new step.
336 self.spinner.reset_elapsed();
337 self.step_start = Instant::now();
338 self.update_spinner();
339 }
340
341 /// Set the active step from a known provisioning step enum.
342 fn set_active_step(&mut self, step: ProvisioningStep) {

Callers 1

set_active_stepMethod · 0.80

Calls 2

update_spinnerMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected