mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-08 04:25:31 +00:00
17 lines
310 B
Rust
17 lines
310 B
Rust
use ouch::{
|
|
cli::{parse_args, ParsedArgs},
|
|
commands, Result,
|
|
};
|
|
|
|
fn main() {
|
|
if let Err(err) = run() {
|
|
println!("{}", err);
|
|
std::process::exit(127);
|
|
}
|
|
}
|
|
|
|
fn run() -> crate::Result<()> {
|
|
let ParsedArgs { command, flags } = parse_args()?;
|
|
commands::run(command, &flags)
|
|
}
|