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

Better stdio option. #24

Closed
jamestalmage opened this issue Apr 24, 2016 · 2 comments
Closed

Better stdio option. #24

jamestalmage opened this issue Apr 24, 2016 · 2 comments

Comments

@jamestalmage
Copy link
Contributor

I think the stdio array is a pretty poor UI, you have to remember the order of things. I'm constantly pulling up that piece of documentation. Instead, of the three member array, let's just give each one it's own named property:

execa('./cli.js', [], {
  stdin: someReadableStream,
  stdout: 'pipe',
  stderr: 'inherit'
});
@sindresorhus
Copy link
Owner

Hah, I was going to comment this exact thing after seeing the example in #20.

Sounds good. stdio should still be possible though, to be able to do stdio: 'inherit' without having to define all properties individually.

@jamestalmage
Copy link
Contributor Author

Yep - I would say keep stdio fully backward compatible. Still able to use the array, just add convenience shortcuts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants