rust_cmd_lib icon indicating copy to clipboard operation
rust_cmd_lib copied to clipboard

Getting error code number

Open Elsie19 opened this issue 1 year ago • 0 comments

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.

Elsie19 avatar Sep 22 '24 00:09 Elsie19