Skip to content
Myr

exit_codes.rs

This file

Path

src/exit_codes.rs

15 lines · 292 bytes · Rust

Last changed by

Expose exit status from `--exec-batch <cmd>`sharkdpbefore adoptiona0505bd

History of this file

Take it

1pub enum ExitCode {2    Success,3    GeneralError,4    KilledBySigint,5}67impl Into<i32> for ExitCode {8    fn into(self) -> i32 {9        match self {10            ExitCode::Success => 0,11            ExitCode::GeneralError => 1,12            ExitCode::KilledBySigint => 130,13        }14    }15}