-
I'm not sure but this may be out of scope for what var process = Process.Start(new ProcessStartInfo
{
FileName = "code.cmd",
ArgumentList = { "--new-window", "--wait", file },
UseShellExecute = true
});
if (process != null)
{
await process.WaitForExitAsync();
if (process.ExitCode == 0)
{
...
}
}
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Shell execute unfortunately can't be enabled because that prevents from reading stdout/stderr, which is pretty much the main purpose of using CliWrap. At that point it wouldn't be much different than using |
Beta Was this translation helpful? Give feedback.
Shell execute unfortunately can't be enabled because that prevents from reading stdout/stderr, which is pretty much the main purpose of using CliWrap. At that point it wouldn't be much different than using
Process
directly, but most importantly allowing shell execute to be configurable will diverge the internal implementation into two separate workflows. So in essence this is out of scope.