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

Function mark_progress_complete

crates/openshell-core/src/progress.rs:18–25  ·  view source on GitHub ↗
(
    metadata: &mut HashMap<String, String, S>,
    step: &'static str,
    label: impl Into<String>,
)

Source from the content-addressed store, hash-verified

16pub const PROGRESS_STEP_STARTING_SANDBOX: &str = "starting_sandbox";
17
18pub fn mark_progress_complete<S: BuildHasher>(
19 metadata: &mut HashMap<String, String, S>,
20 step: &'static str,
21 label: impl Into<String>,
22) {
23 metadata.insert(PROGRESS_COMPLETE_STEP_KEY.to_string(), step.to_string());
24 metadata.insert(PROGRESS_COMPLETE_LABEL_KEY.to_string(), label.into());
25}
26
27pub fn mark_progress_active<S: BuildHasher>(
28 metadata: &mut HashMap<String, String, S>,

Calls

no outgoing calls

Tested by

no test coverage detected