first pass of merging in warp (doesn't build)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
use anyhow::Result;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use anyhow::Result;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let args: Vec<String> = std::env::args().collect();
|
||||
|
||||
|
||||
@@ -10,8 +10,10 @@ mod types;
|
||||
/// searching if the main Warp process has exited.
|
||||
#[cfg(unix)]
|
||||
pub fn monitor_parent_and_exit_on_change(parent_pid: Option<u32>) {
|
||||
use std::thread;
|
||||
use std::time::Duration;
|
||||
|
||||
use nix::unistd::Pid;
|
||||
use std::{thread, time::Duration};
|
||||
|
||||
let expected_parent = match parent_pid {
|
||||
Some(pid) => Pid::from_raw(pid as i32),
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
use std::ops::Not;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use anyhow::anyhow;
|
||||
use grep::printer::JSONBuilder;
|
||||
use grep::regex::RegexMatcherBuilder;
|
||||
use grep::{
|
||||
printer::JSONBuilder,
|
||||
searcher::{BinaryDetection, SearcherBuilder},
|
||||
};
|
||||
use grep::searcher::{BinaryDetection, SearcherBuilder};
|
||||
use ignore::{WalkBuilder, WalkState};
|
||||
use std::ops::Not;
|
||||
use string_offset::ByteOffset;
|
||||
|
||||
/// Maximum line length (in bytes) the ripgrep searcher will tolerate.
|
||||
|
||||
Reference in New Issue
Block a user