refactor: glob by default for commands#492
Conversation
src/common.js
Outdated
| canReceivePipe: false, | ||
| cmdOptions: false, | ||
| globStart: 1, | ||
| wrapOutput: false, |
There was a problem hiding this comment.
I vote for this to default to true.
4ac06a4 to
f8edfad
Compare
|
This now also makes |
|
Gonna give this an LGTM since it just covers the refactors discussed. @ariporad chime in if there are any other issues. |
|
The only difference, I suppose, is that this removes the exception thrown if |
|
Upgrade from
|
|
@gyandeeps thanks for pointing this out. It looks like the change in behavior was a mistake. I'll review this more carefully and revert any changes to behavior. |
This PR accomplishes:
globStartdefaults to 1allowGlobbing: falseCommands have been refactored to take advantage of this new default value.
Also, this PR begins to store default values in a JS object for each
wrapOption, which will probably make it easier to keep track of the defaults in the long run. Because this usescommon.expand(), this will have a slight conflict with #490 (this is just because I renamedexpandtoobjectAssignin that PR). I'll resolve the conflict after either PR is merged and update accordingly.This might be a good time to discuss if we want
wrapOutputto be true by default, since it seems like it'll be the norm for a command to use that option.