repo.or.cz
/
ouch.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Start replacing `clap` with `oof`
[ouch.git]
/
src
/
main.rs
blob
15cc88d5a2b4b7d9b115503260d54ab19a274908
1
mod cli;
2
mod compressors;
3
mod decompressors;
4
mod dialogs;
5
mod error;
6
mod evaluator;
7
mod extension;
8
mod file;
9
mod test;
10
mod utils;
11
12
use error::{Error, Result};
13
use evaluator::Evaluator;
14
15
fn main() {
16
if let Err(err) = run() {
17
println!("{}", err);
18
std::process::exit(127);
19
}
20
}
21
22
fn run() -> crate::Result<()> {
23
let command = cli::parse_args_and_flags()?;
24
Evaluator::evaluate(command)
25
}