MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / run_command

Function run_command

xtask/src/main.rs:9824–9832  ·  view source on GitHub ↗
(command: &mut Command)

Source from the content-addressed store, hash-verified

9822}
9823
9824fn run_command(command: &mut Command) -> Result<()> {
9825 let status = command
9826 .status()
9827 .map_err(|err| anyhow!("failed to spawn command: {err}"))?;
9828 if !status.success() {
9829 bail!("command failed with {status}");
9830 }
9831 Ok(())
9832}
9833
9834fn print_usage() {
9835 eprintln!("usage:");

Callers 9

run_in_release_workspaceFunction · 0.85
fetch_pinned_sourcesFunction · 0.85
init_source_checkoutFunction · 0.85
ensure_source_remoteFunction · 0.85
build_asset_spineFunction · 0.85
runFunction · 0.85
run_validate_scriptFunction · 0.85

Calls 1

statusMethod · 0.80

Tested by

no test coverage detected