(&self)
| 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 { |
no outgoing calls