Skip to main content

exit_code

Function exit_code 

Source
pub fn exit_code(checks: &[Check]) -> i32
Expand description

The exit code for a set of checks: 0 when nothing failed, 1 when something did.

A warning does not fail the command. This follows the binary’s own convention — 0 accepted, 1 rejected, 2 usage — so choir doctor && choir propose … means what it looks like it means.