mirror of
https://github.com/watchexec/watchexec.git
synced 2024-09-27 21:51:33 +02:00
1.9.2: revert whitespace changes
This commit is contained in:
parent
0cc3110c7d
commit
dc712197c0
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -614,7 +614,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "watchexec"
|
name = "watchexec"
|
||||||
version = "1.9.1"
|
version = "1.9.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap 2.32.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"clap 2.32.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"env_logger 0.5.13 (registry+https://github.com/rust-lang/crates.io-index)",
|
"env_logger 0.5.13 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "watchexec"
|
name = "watchexec"
|
||||||
version = "1.9.1"
|
version = "1.9.2"
|
||||||
authors = ["Matt Green <mattgreenrocks@gmail.com>"]
|
authors = ["Matt Green <mattgreenrocks@gmail.com>"]
|
||||||
description = "Executes commands in response to file modifications"
|
description = "Executes commands in response to file modifications"
|
||||||
documentation = "https://github.com/watchexec/watchexec"
|
documentation = "https://github.com/watchexec/watchexec"
|
||||||
|
@ -8,6 +8,7 @@ pub fn spawn(cmd: &Vec<String>, updated_paths: Vec<PathOp>, no_shell: bool) -> P
|
|||||||
|
|
||||||
pub use self::imp::Process;
|
pub use self::imp::Process;
|
||||||
|
|
||||||
|
/*
|
||||||
fn needs_wrapping(s: &String) -> bool {
|
fn needs_wrapping(s: &String) -> bool {
|
||||||
s.contains(|ch| match ch {
|
s.contains(|ch| match ch {
|
||||||
' ' | '\t' | '\'' | '"' => true,
|
' ' | '\t' | '\'' | '"' => true,
|
||||||
@ -50,10 +51,11 @@ fn wrap_commands(cmd: &Vec<String>) -> Vec<String> {
|
|||||||
})
|
})
|
||||||
.collect()
|
.collect()
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
#[cfg(target_family = "unix")]
|
#[cfg(target_family = "unix")]
|
||||||
mod imp {
|
mod imp {
|
||||||
use super::wrap_commands;
|
//use super::wrap_commands;
|
||||||
use nix::libc::*;
|
use nix::libc::*;
|
||||||
use nix::{self, Error};
|
use nix::{self, Error};
|
||||||
use pathop::PathOp;
|
use pathop::PathOp;
|
||||||
@ -99,7 +101,8 @@ mod imp {
|
|||||||
command
|
command
|
||||||
} else {
|
} else {
|
||||||
let mut command = Command::new("sh");
|
let mut command = Command::new("sh");
|
||||||
command.arg("-c").arg(wrap_commands(cmd).join(" "));
|
//command.arg("-c").arg(wrap_commands(cmd).join(" "));
|
||||||
|
command.arg("-c").arg(cmd.join(" "));
|
||||||
command
|
command
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -176,7 +179,7 @@ mod imp {
|
|||||||
|
|
||||||
#[cfg(target_family = "windows")]
|
#[cfg(target_family = "windows")]
|
||||||
mod imp {
|
mod imp {
|
||||||
use super::wrap_commands;
|
//use super::wrap_commands;
|
||||||
use kernel32::*;
|
use kernel32::*;
|
||||||
use pathop::PathOp;
|
use pathop::PathOp;
|
||||||
use signal::Signal;
|
use signal::Signal;
|
||||||
@ -266,7 +269,8 @@ mod imp {
|
|||||||
} else {
|
} else {
|
||||||
command = Command::new("cmd.exe");
|
command = Command::new("cmd.exe");
|
||||||
command.arg("/C");
|
command.arg("/C");
|
||||||
command.arg(wrap_commands(cmd).join(" "));
|
//command.arg(wrap_commands(cmd).join(" "));
|
||||||
|
command.arg(cmd.join(" "));
|
||||||
}
|
}
|
||||||
|
|
||||||
command.creation_flags(CREATE_SUSPENDED);
|
command.creation_flags(CREATE_SUSPENDED);
|
||||||
@ -463,7 +467,7 @@ fn get_longest_common_path(paths: &[PathBuf]) -> Option<String> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
#[cfg(target_family = "unix")]
|
#[cfg(target_family = "unix-skip")]
|
||||||
mod tests {
|
mod tests {
|
||||||
use notify;
|
use notify;
|
||||||
use pathop::PathOp;
|
use pathop::PathOp;
|
||||||
|
Loading…
Reference in New Issue
Block a user