Progress
CI / build (push) Successful in 14s

This commit is contained in:
hulthe committed 2026-09-04 17:01:46 +02:00
1 parent 286def05c1
commit 7dd818db68
7 files changed
+170 -24

No files matched your search

+4
View File
@@ -2,6 +2,10 @@ use std::process::Command;
use anyhow::{Context, anyhow, bail};
/// Spawn a subprocess with arguments.
///
/// Collects `stdout` and returns it on success.
/// Returns `Err` if the exit code isn't 0, or if the process failed to spawn.
pub fn cmd(cmd: &[&str]) -> anyhow::Result<String> {
let [cmd, args @ ..] = cmd else {
bail!("missing command");