I wanted to check if the exit code was 2 but I could not easily do this because I got a (CmdStatusErr (Other "Non-zero exit code: 2")) instead of Ok(2). The signature of status! is Cmd => Result I32 [CmdStatusErr InternalIOErr.IOErr] while in truth I32 can only be 0, this all together does not really make sense.
Perhaps another function with a different name should be added here.
I wanted to check if the exit code was 2 but I could not easily do this because I got a
(CmdStatusErr (Other "Non-zero exit code: 2"))instead ofOk(2). The signature ofstatus!isCmd => Result I32 [CmdStatusErr InternalIOErr.IOErr]while in truthI32can only be0, this all together does not really make sense.Perhaps another function with a different name should be added here.