Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/wasmtime
/ has_command
Function
has_command
scripts/coverage.rs:241–248 ·
view source on GitHub ↗
(name: &str)
Source
from the content-addressed store, hash-verified
239
}
240
241
fn has_command(name: &str) -> bool {
242
Command::new(name)
243
.arg(
"--version"
)
244
.stdout(Stdio::null())
245
.stderr(Stdio::null())
246
.status()
247
.is_ok_and(|s| s.success())
248
}
Callers
1
generate_report
Function · 0.85
Calls
6
status
Method · 0.80
new
Function · 0.50
stderr
Method · 0.45
stdout
Method · 0.45
arg
Method · 0.45
success
Method · 0.45
Tested by
no test coverage detected