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

Method from_env

e2e/rust/src/harness/container.rs:41–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39
40impl ContainerEngine {
41 pub fn from_env() -> Result<Self, String> {
42 let resolved = resolve_container_engine(
43 std::env::var("OPENSHELL_E2E_CONTAINER_ENGINE")
44 .ok()
45 .as_deref(),
46 std::env::var("CONTAINER_ENGINE").ok().as_deref(),
47 e2e_driver().as_deref(),
48 &HostContainerEngineProbe,
49 )?;
50
51 Ok(Self {
52 engine: resolved.engine,
53 binary: resolved.binary,
54 })
55 }
56
57 #[must_use]
58 pub fn command(&self) -> Command {

Callers

nothing calls this directly

Calls 2

resolve_container_engineFunction · 0.85
e2e_driverFunction · 0.85

Tested by

no test coverage detected