I cannot seem to find any function/macro in this library that I can use to get an exit code from a command. The closest I found is run_cmd!(), but that errors to something like:
Running ["bash" "-c" "time ./build/debug/foo"] exited with error; status code: 1 at src/main.rs:83
with no way to extract that 1 unless I parsed the string itself, which is not ideal.
I cannot seem to find any function/macro in this library that I can use to get an exit code from a command. The closest I found is
run_cmd!()
, but that errors to something like:with no way to extract that
1
unless I parsed the string itself, which is not ideal.