mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-10-09 19:10:50 +00:00
12 lines
387 B
Rust
12 lines
387 B
Rust
|
use std::{env, process::Command};
|
||
|
|
||
|
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||
|
let mut child = Command::new("cargo").args(["run", "--package", "xtask-admin-command", "--"].into_iter().map(ToOwned::to_owned).chain(env::args().skip(2)))
|
||
|
// .stdout(Stdio::piped())
|
||
|
// .stderr(Stdio::piped())
|
||
|
.spawn()
|
||
|
.expect("failed to execute child");
|
||
|
child.wait()?;
|
||
|
Ok(())
|
||
|
}
|