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

Method command

e2e/rust/src/harness/container.rs:58–67  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

56
57 #[must_use]
58 pub fn command(&self) -> Command {
59 let mut command = Command::new(&self.binary);
60 if let Ok(value) = std::env::var("OPENSHELL_E2E_CONTAINER_ENGINE_XDG_CONFIG_HOME") {
61 command.env("XDG_CONFIG_HOME", value);
62 } else if std::env::var_os("OPENSHELL_E2E_CONTAINER_ENGINE_UNSET_XDG_CONFIG_HOME").is_some()
63 {
64 command.env_remove("XDG_CONFIG_HOME");
65 }
66 command
67 }
68
69 #[must_use]
70 pub fn name(&self) -> &str {

Callers 6

start_pythonMethod · 0.80
wait_until_readyMethod · 0.80
dropMethod · 0.80
run_engineFunction · 0.80
container_engine_infoFunction · 0.80
runtime_gpu_linesFunction · 0.80

Calls

no outgoing calls

Tested by 3

run_engineFunction · 0.64
container_engine_infoFunction · 0.64
runtime_gpu_linesFunction · 0.64