-
Notifications
You must be signed in to change notification settings - Fork 744
feat(exec): allow all exec options to pass through #335
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
Conversation
9bd96a4 to
f5e5241
Compare
f5e5241 to
058bb67
Compare
| `true`, regardless of the passed value. | ||
| + `silent`: Do not echo program output to console. | ||
| + and any option available to NodeJS's | ||
| [child_process.exec()](https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this on a seperate line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ariporad I try to format lines to be under 80 characters. This is how vim's built-in formatting did it. Markdown allows you to extend lines (as long as you don't leave one blank line in-between) without it affecting the end-result. You can check "view file" to be sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM
|
@nfischer: A few small comments, otherwise looks good! |
|
@ariporad this should be good now |
|
LGTM! |
feat(exec): allow all exec options to pass through
This allows any option from https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback to be passed through our
shell.exec()function to the nativeexec()/execSync().This fixes #250, #132 and replaces #270 #284 #333 #163
This specifically tests the
cwd,maxBuffer, andtimeoutoptions, since those were requested.