MCPcopy Create free account
hub / github.com/dashed/git-chain / run_app

Function run_app

src/main.rs:26–40  ·  view source on GitHub ↗
(arguments: I)

Source from the content-addressed store, hash-verified

24}
25
26fn run_app<I, T>(arguments: I)
27where
28 I: IntoIterator<Item = T>,
29 T: Into<OsString> + Clone,
30{
31 let arg_matches = parse_arg_matches(arguments);
32
33 match run(arg_matches) {
34 Ok(()) => {}
35 Err(err) => {
36 eprintln!("{} {}", "error:".red().bold(), err);
37 process::exit(1);
38 }
39 }
40}
41
42pub fn executable_name() -> String {
43 let name = std::env::current_exe()

Callers 1

mainFunction · 0.85

Calls 2

parse_arg_matchesFunction · 0.85
runFunction · 0.85

Tested by

no test coverage detected