mirror of
https://github.com/watchexec/watchexec.git
synced 2024-09-28 22:21:33 +02:00
Remove duplication between main/lib files
This commit is contained in:
parent
88297f7866
commit
ef0e6df8d4
33
src/main.rs
33
src/main.rs
@ -1,33 +1,6 @@
|
|||||||
#[macro_use]
|
extern crate watchexec;
|
||||||
extern crate clap;
|
use watchexec::{cli::get_args, run};
|
||||||
extern crate globset;
|
|
||||||
extern crate env_logger;
|
|
||||||
#[macro_use]
|
|
||||||
extern crate log;
|
|
||||||
#[macro_use]
|
|
||||||
extern crate lazy_static;
|
|
||||||
extern crate notify;
|
|
||||||
|
|
||||||
#[cfg(unix)]
|
|
||||||
extern crate nix;
|
|
||||||
#[cfg(windows)]
|
|
||||||
extern crate winapi;
|
|
||||||
#[cfg(windows)]
|
|
||||||
extern crate kernel32;
|
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
extern crate mktemp;
|
|
||||||
|
|
||||||
mod cli;
|
|
||||||
mod gitignore;
|
|
||||||
mod notification_filter;
|
|
||||||
mod process;
|
|
||||||
mod run;
|
|
||||||
mod signal;
|
|
||||||
mod watcher;
|
|
||||||
mod pathop;
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let args = cli::get_args();
|
run(get_args());
|
||||||
run::run(args);
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user