Skip to main content

exit_code

Function exit_code 

Source
pub fn exit_code(err: &AtomiseError) -> i32
Expand description

Map an AtomiseError variant to its stable exit code.

Visible-for-test so the unit suite below can assert on the mapping without round-tripping through run.