Skip to main content

try_main

Function try_main 

Source
pub fn try_main(run: impl FnOnce() -> RajacResult<()>) -> ExitCode
Expand description

What does try_main provide for CLI binaries?

It runs a fallible entrypoint, prints a readable error report on failure, and converts the outcome into a process exit code.