mirror of
https://github.com/FliegendeWurst/ripgrep-all.git
synced 2024-11-24 20:24:57 +00:00
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(())
|
||
|
}
|