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

Method from_env

e2e/rust/tests/local_driver_token_restart.rs:52–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50
51impl LocalDriver {
52 fn from_env() -> Option<Self> {
53 match e2e_driver().as_deref() {
54 Some("docker") => Some(Self::Docker),
55 Some("podman") => Some(Self::Podman),
56 Some("vm") => Some(Self::Vm),
57 _ => None,
58 }
59 }
60
61 fn is_container(self) -> bool {
62 matches!(self, Self::Docker | Self::Podman)

Callers

nothing calls this directly

Calls 1

e2e_driverFunction · 0.85

Tested by

no test coverage detected