MCPcopy Create free account
hub / github.com/Proryanator/encoder-benchmark / error_with_ack

Function error_with_ack

cli/src/cli_util.rs:89–96  ·  view source on GitHub ↗
(ack: bool)

Source from the content-addressed store, hash-verified

87}
88
89pub fn error_with_ack(ack: bool) {
90 // want to give the user a chance to acknowledge the error
91 if ack {
92 dont_disappear::any_key_to_continue::custom_msg("Press any key to close the program...");
93 }
94
95 std::process::exit(1);
96}
97
98pub fn pause() {
99 dont_disappear::any_key_to_continue::custom_msg("Press any key to close the program...");

Callers 5

validateMethod · 0.85
run_encodeFunction · 0.85
standard_cli_checkFunction · 0.85
validateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected