Skip to content

Making opts.cwd persist through chained calls - #17

Open
brynbellomy wants to merge 3 commits into
polotek:masterfrom
brynbellomy:master
Open

Making opts.cwd persist through chained calls#17
brynbellomy wants to merge 3 commits into
polotek:masterfrom
brynbellomy:master

Conversation

@brynbellomy

Copy link
Copy Markdown

Basically what the title says. I really didn't want to barf all over your implementation, which is really elegant and concise, so I took as much care as I could in not adding unnecessary fields to objects, not repeating anything, etc. However, I did have to make a second call to normalizeArguments(), but to balance that out, I modified procSteam() so that the first argument could be an object containing the already-normalized argument fields. In this case, the call to normalizeArguments() is not made inside of procStreams() -- no code is actually run twice. It was the best workaround I could think of without doing some fundamental rewriting.

Let me know if you have a better idea about how to implement this -- I'm all ears.

@polotek

polotek commented Oct 22, 2012

Copy link
Copy Markdown
Owner

Hey it look like this is failing travis tests. I haven't had a chance to look over it yet. But can you look into that?

@popomore

popomore commented Jun 7, 2013

Copy link
Copy Markdown

It seems travis's problem.

https://travis-ci.org/polotek/procstreams/jobs/2761505

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants