Skip to main content

wekan_cli/
exit_code.rs

1#[derive(Clone, Copy, Debug, Eq, PartialEq)]
2#[repr(u8)]
3pub enum StableExitCode {
4    Internal = 1,
5    InvalidInput = 2,
6    Configuration = 3,
7    Transport = 4,
8    Server = 5,
9    Credential = 6,
10}
11
12impl From<StableExitCode> for std::process::ExitCode {
13    fn from(value: StableExitCode) -> Self {
14        Self::from(value as u8)
15    }
16}