Skip to content

Conversation

@nfischer
Copy link
Member

@nfischer nfischer commented Feb 4, 2016

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 native exec()/execSync().

This fixes #250, #132 and replaces #270 #284 #333 #163

This specifically tests the cwd, maxBuffer, and timeout options, since those were requested.

`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)
Copy link
Contributor

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?

Copy link
Member Author

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

@ariporad
Copy link
Contributor

ariporad commented Feb 4, 2016

@nfischer: A few small comments, otherwise looks good!

@nfischer
Copy link
Member Author

nfischer commented Feb 4, 2016

@ariporad this should be good now

@ariporad
Copy link
Contributor

ariporad commented Feb 4, 2016

LGTM!

ariporad added a commit that referenced this pull request Feb 4, 2016
feat(exec): allow all exec options to pass through
@ariporad ariporad merged commit c0d9cf7 into master Feb 4, 2016
@ariporad ariporad deleted the more-exec-options branch February 4, 2016 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

why not support set 'cwd' when invoke execAsync ?

2 participants