MCPcopy Create free account
hub / github.com/Wulf/create-rust-app / exit_code

Function exit_code

crates/create-rust-app_cli/src/utils/logger.rs:47–50  ·  view source on GitHub ↗
(msg: &str, code: i32)

Source from the content-addressed store, hash-verified

45}
46
47pub fn exit_code(msg: &str, code: i32) -> ! {
48 error(msg);
49 std::process::exit(code);
50}
51
52pub fn exit_error(msg: &str, err: &std::io::Error) -> ! {
53 error(format!("{msg}: {err:?}").as_str());

Callers 1

installMethod · 0.85

Calls 1

errorFunction · 0.85

Tested by

no test coverage detected