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

Function summary_container_name

crates/openshell-driver-docker/src/lib.rs:2859–2866  ·  view source on GitHub ↗
(summary: &ContainerSummary)

Source from the content-addressed store, hash-verified

2857}
2858
2859fn summary_container_name(summary: &ContainerSummary) -> Option<String> {
2860 summary
2861 .names
2862 .as_ref()
2863 .and_then(|names| names.first())
2864 .map(|name| name.trim_start_matches('/').to_string())
2865 .filter(|name| !name.is_empty())
2866}
2867
2868fn summary_container_target(summary: &ContainerSummary) -> Option<String> {
2869 // Prefer the container ID: it's stable while the container exists and is

Callers 2

summary_container_targetFunction · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected