grunt-bump icon indicating copy to clipboard operation
grunt-bump copied to clipboard

support cwd

Open JaminShanti opened this issue 8 years ago • 1 comments

I have a need to issue the git tag commands in a particular directory different than the directory where the grunt commands are issued. Can you add cwd support to grunt-bump.

JaminShanti avatar Jan 09 '17 20:01 JaminShanti

Initially I was going to say no to this as it such an odd edge case but implementation will probably take less time than writing this comment. Ok maybe not but its probably not far off. All thats needed is to pass an options object to the exec commands that takes cwd if it exists.

var execOpts;
if (options.cwd) {
  execOpts.cwd = options.cwd;
}

exec(cmd, execOpts, cb...);

Something like that. If you want to submit a PR, then go ahead and there is a high chance it will get merged.

eddiemonge avatar Jan 13 '17 18:01 eddiemonge