build: add nix crate and update main.rs
This commit is contained in:
@@ -46,6 +46,8 @@ use is_terminal::IsTerminal;
|
|||||||
|
|
||||||
extern crate term;
|
extern crate term;
|
||||||
|
|
||||||
|
use nix::unistd;
|
||||||
|
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
static ref FORMAT_BOX_CHARS_NO_BORDER_LINE_SEPARATOR: TableFormat = format::FormatBuilder::new()
|
static ref FORMAT_BOX_CHARS_NO_BORDER_LINE_SEPARATOR: TableFormat = format::FormatBuilder::new()
|
||||||
.column_separator('│')
|
.column_separator('│')
|
||||||
@@ -517,8 +519,8 @@ fn mode_diff(cmd: &mut Command, args: Args, ids: &mut Vec<i64>, tags: &mut Vec<S
|
|||||||
|
|
||||||
let compression_engine_b = compression::get_engine(compression_type_b).expect("Unable to get compression engine");
|
let compression_engine_b = compression::get_engine(compression_type_b).expect("Unable to get compression engine");
|
||||||
|
|
||||||
let (fd_a_read, fd_a_write) = nix::unistd::pipe().unwrap();
|
let (fd_a_read, fd_a_write) = unistd::pipe().unwrap();
|
||||||
let (fd_b_read, fd_b_write) = nix::unistd::pipe().unwrap();
|
let (fd_b_read, fd_b_write) = unistd::pipe().unwrap();
|
||||||
|
|
||||||
let mut child = std::process::Command::new("diff")
|
let mut child = std::process::Command::new("diff")
|
||||||
.arg("-u")
|
.arg("-u")
|
||||||
|
|||||||
Reference in New Issue
Block a user