Skip to content
New issue

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

Process.execute Stdio #90

Open
Aidan63 opened this issue Apr 6, 2024 · 0 comments
Open

Process.execute Stdio #90

Aidan63 opened this issue Apr 6, 2024 · 0 comments
Labels

Comments

@Aidan63
Copy link
Owner

Aidan63 commented Apr 6, 2024

This function is designed to be a shortcut for calling a function but it accepting the same process options as the full open function means you could do stuff like set stdout to Ignore. In this case would you expect the stdout bytes in the execute callback to be null? You could also configure stdin but then have no way to interact with it.
This seems pretty useless so I just ignore all stdio pipe options with execute, the process options typedef should probably be split up so stdio is independent of the other config option which execute can make use of.

Process.execute("haxe.exe", { stdio: [ PipeWrite, Ignore, Ignore ] }, (error, result) -> {
	trace(result.stdout, result.stderr);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant