You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So there is a something strange when using this extension with Windows. I have noticed that the command runs/works but return nothing to the k6 terminal, just an empty line, like \n was printed.
I believe by default cmd is used to run commands. You can force it run as powershell console.log(exec.command("'powershell" ["date"]));
Anyways to overcome the issues with Windows I ended modifying this extension to use go-cmd using their buffer code example to return stdout and stderr. Disclaimer: I am new to go-lang & xk6-extensions
When running the CLI commands e.g.
console.log(exec.command("date"));
nothing is outputted to the console.No errors are thrown either.
The text was updated successfully, but these errors were encountered: