Add source files: main.rs, lib.rs, cli.rs, error.rs
Some checks failed
CI / test (push) Has been cancelled
Some checks failed
CI / test (push) Has been cancelled
This commit is contained in:
16
src/main.rs
Normal file
16
src/main.rs
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
use std::process;
|
||||||
|
use git_commit_prefix_gen::cli::{CliArgs, run};
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
let args = CliArgs::parse();
|
||||||
|
|
||||||
|
match run(&args) {
|
||||||
|
Ok(exit_code) => {
|
||||||
|
process::exit(exit_code);
|
||||||
|
}
|
||||||
|
Err(e) => {
|
||||||
|
eprintln!("Error: {}", e);
|
||||||
|
process::exit(e.exit_code());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user