{"action":"created","issue":{"url":"https://api.github.com/repos/keithamus/parallelshell/issues/34","labels_url":"https://api.github.com/repos/keithamus/parallelshell/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/keithamus/parallelshell/issues/34/comments","events_url":"https://api.github.com/repos/keithamus/parallelshell/issues/34/events","html_url":"https://github.com/keithamus/parallelshell/pull/34","id":107566889,"number":34,"title":"Ability to set CWD","user":{"login":"barrysteyn","id":1537348,"avatar_url":"https://avatars.githubusercontent.com/u/1537348?v=3","gravatar_id":"","url":"https://api.github.com/users/barrysteyn","html_url":"https://github.com/barrysteyn","followers_url":"https://api.github.com/users/barrysteyn/followers","following_url":"https://api.github.com/users/barrysteyn/following{/other_user}","gists_url":"https://api.github.com/users/barrysteyn/gists{/gist_id}","starred_url":"https://api.github.com/users/barrysteyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barrysteyn/subscriptions","organizations_url":"https://api.github.com/users/barrysteyn/orgs","repos_url":"https://api.github.com/users/barrysteyn/repos","events_url":"https://api.github.com/users/barrysteyn/events{/privacy}","received_events_url":"https://api.github.com/users/barrysteyn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-21T18:04:28Z","updated_at":"2015-09-21T21:07:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/keithamus/parallelshell/pulls/34","html_url":"https://github.com/keithamus/parallelshell/pull/34","diff_url":"https://github.com/keithamus/parallelshell/pull/34.diff","patch_url":"https://github.com/keithamus/parallelshell/pull/34.patch"},"body":"Hi Keith\r\n\r\nInspired by your blog post about scrapping grunt etc, and just using NPM, I happily using parallelshell. Unfortunately, there are many cases where I need to set the current working directory (CWD) to run the command in. Now that we are using `exec`, `cd` does not work. So I have come up with my own solution, which is to pass parallelshell a JSON array, and if it parses and if it contains two items, the first item will be the CWD. If any of those conditions do not hold, then just use as per normal."},"comment":{"url":"https://api.github.com/repos/keithamus/parallelshell/issues/comments/142108435","html_url":"https://github.com/keithamus/parallelshell/pull/34#issuecomment-142108435","issue_url":"https://api.github.com/repos/keithamus/parallelshell/issues/34","id":142108435,"user":{"login":"barrysteyn","id":1537348,"avatar_url":"https://avatars.githubusercontent.com/u/1537348?v=3","gravatar_id":"","url":"https://api.github.com/users/barrysteyn","html_url":"https://github.com/barrysteyn","followers_url":"https://api.github.com/users/barrysteyn/followers","following_url":"https://api.github.com/users/barrysteyn/following{/other_user}","gists_url":"https://api.github.com/users/barrysteyn/gists{/gist_id}","starred_url":"https://api.github.com/users/barrysteyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barrysteyn/subscriptions","organizations_url":"https://api.github.com/users/barrysteyn/orgs","repos_url":"https://api.github.com/users/barrysteyn/repos","events_url":"https://api.github.com/users/barrysteyn/events{/privacy}","received_events_url":"https://api.github.com/users/barrysteyn/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T21:07:16Z","updated_at":"2015-09-21T21:07:16Z","body":"Hi @keithamus. From just looking at #30, I think it should be able to do what I need. But I am still of the opinion that one should be able to set the CWD. The way I have done it is a little inelegant for the user. I have not tested #30, but I still advise that there should be some way to set the CWD."}}