You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
402 B
Rust
17 lines
402 B
Rust
use rga::adapters;
|
|
|
|
use std::process::Command;
|
|
|
|
fn main() -> std::io::Result<()> {
|
|
let exe = std::env::current_exe().expect("Could not get executable location");
|
|
let preproc_exe = exe.with_file_name("rga-preproc");
|
|
let mut child = Command::new("rg")
|
|
.arg("--pre")
|
|
.arg(preproc_exe)
|
|
.args(std::env::args().skip(1))
|
|
.spawn()?;
|
|
|
|
child.wait()?;
|
|
Ok(())
|
|
}
|