pub fn from_status(status: ExitStatus) -> CodeExpand description
Converts std::process::ExitStatus to sysexit::Code.
On Unix, if the process was terminated by a fatal signal, the corresponding
signal exit code is returned. If the passed exit status cannot be
determined, sysexit::Unknown (2) is returned.