We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
util.exec
bring util; let x = util.exec("ls", []); log(x.stdout);
undefined
No response
The text was updated successfully, but these errors were encountered:
9f49b16
Congrats! 🚀 This was released in Wing 0.83.1.
Sorry, something went wrong.
It looks like continues to error on Windows machines - see this build error (https://github.com/winglang/wing/actions/runs/11226171454/job/31329344016):
× src/test_corpus/doc_examples/35-exec-processes.md_example_1/main.w.test.ts > wing test -t sim 1710ms → Error: Program not found: spawnSync bash ENOENT --> main.w:14:15 | let output3 = util.exec("bash", ["--norc", "--noprofile", "-c", "echo $WING_TARGET $ENV_VAR"], { inheritEnv: true }); | | // exec with current working directory 14 | let output4 = util.exec("bash", ["--norc", "--noprofile", "-c", "echo Hello"], { cwd: "/tmp" }); | ^ at D:/a/wing/wing/tests/doc_examples/valid/35-exec-processes.md_example_1/main.w:14:15 Tests 1 failed (1) Snapshots 1 skipped Test Files 1 failed (1) Duration 0m0.98s
tsuf239
Successfully merging a pull request may close this issue.
I tried this:
This happened:
I expected this:
No response
Is there a workaround?
No response
Anything else?
No response
Wing Version
No response
Node.js Version
No response
Platform(s)
No response
Community Notes
The text was updated successfully, but these errors were encountered: