clink
clink copied to clipboard
Get exitcode of last ran command
Is it possible to get the exitcode of the last ran command, similar to echo %errorlevel%
?
I have tried clink.get_env("errorlevel")
and a few things to run echo %errorlevel%
and get the output but everything just returns 0.
See the issue #385. It should be clink.get_env("=ExitCode")
but check my comments, it works only sometimes. It looks like there are more ways to return an exit code from an application and this is working in some cases only.