()
| 268 | } |
| 269 | |
| 270 | fn docker_is_podman_shim() -> bool { |
| 271 | if !command_exists("docker") { |
| 272 | return false; |
| 273 | } |
| 274 | |
| 275 | let Ok(output) = Command::new("docker").arg("--version").output() else { |
| 276 | return false; |
| 277 | }; |
| 278 | let version = format!( |
| 279 | "{}{}", |
| 280 | String::from_utf8_lossy(&output.stdout), |
| 281 | String::from_utf8_lossy(&output.stderr) |
| 282 | ); |
| 283 | version.to_ascii_lowercase().contains("podman") |
| 284 | } |
| 285 | |
| 286 | fn require_engine_available( |
| 287 | engine: &str, |
no test coverage detected