wokim / node-perforce

A simple library for perforce
MIT License
14 stars 13 forks source link

add ability to pass in child process options #4

Closed mattsawyer77 closed 9 years ago

mattsawyer77 commented 9 years ago

I needed some way to specify the cwd that the p4 command should run in (otherwise I needed to do awkward chdir stuff to work around it).

As far as I can tell, the options that p4 accepts don't collide with the options that can be passed to the child process exec function. But if you'd prefer instead to use a separate argument for the child process options, I can do it that way and submit a different PR. Or if you're against this idea altogether, I can just manually chdir prior to calling the p4 methods.