1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
pub use structopt::{self, clap};
pub mod app;
pub mod cli_opt;
pub mod export_json_config;
pub mod generate_shell_completions;
pub mod pretty_error_message;
pub mod rules;
mod act;
mod cross_platform_path;
mod diff;
mod file_list;
mod term;
pub fn run() -> Result<(), String> {
app::App::default().run()
}
pub fn main() -> ! {
std::process::exit(if let Err(message) = run() {
eprint!("{}", pretty_error_message::PrettyErrorMessage(message));
1
} else {
0
})
}