{"action":"closed","number":30,"pull_request":{"url":"https://api.github.com/repos/code42day/postcss-cli/pulls/30","id":47209234,"html_url":"https://github.com/code42day/postcss-cli/pull/30","diff_url":"https://github.com/code42day/postcss-cli/pull/30.diff","patch_url":"https://github.com/code42day/postcss-cli/pull/30.patch","issue_url":"https://api.github.com/repos/code42day/postcss-cli/issues/30","number":30,"state":"closed","locked":false,"title":"Input files can now be replaced with generated output to keep directory tree","user":{"login":"mkurz","id":644927,"avatar_url":"https://avatars.githubusercontent.com/u/644927?v=3","gravatar_id":"","url":"https://api.github.com/users/mkurz","html_url":"https://github.com/mkurz","followers_url":"https://api.github.com/users/mkurz/followers","following_url":"https://api.github.com/users/mkurz/following{/other_user}","gists_url":"https://api.github.com/users/mkurz/gists{/gist_id}","starred_url":"https://api.github.com/users/mkurz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkurz/subscriptions","organizations_url":"https://api.github.com/users/mkurz/orgs","repos_url":"https://api.github.com/users/mkurz/repos","events_url":"https://api.github.com/users/mkurz/events{/privacy}","received_events_url":"https://api.github.com/users/mkurz/received_events","type":"User","site_admin":false},"body":"We want to migrate from the \"old\" `autoprefixer` / `autoprefixer-cli` to the (now) recommended `postcss-cli`.\r\n\r\nWith `autoprefixer` 5.2.1 / `autoprefixer-cli` 1.0.0 it was possible to skip the `output` and `dir` arguments - in this case the input files were overwritten with the generated output (files).\r\nI would love to see the same behaviour in postcss-cli as well. We use this behaviour in our build environment - we copy a directory tree containing css files and then run `autoprefixer` on those file - which keeps the directory tree / file structure. Keeping the file tree structure is not possible right now with `postcss-cli --use autoprefixer -d somedir` because all processed css files will be saved directly in the output dir, no matter if they came from a sub-directory or not.\r\n\r\nIn `autoprefixer-cli` for example this happend [in this](https://github.com/ai/autoprefixer-cli/blob/1.0.0/binary.js#L328-L332) `else` part.","created_at":"2015-10-08T21:31:40Z","updated_at":"2015-10-09T13:57:18Z","closed_at":"2015-10-09T13:57:18Z","merged_at":"2015-10-09T13:57:18Z","merge_commit_sha":"9f3e77a97cf53bd93e6968bc7c6028e456183b0f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/code42day/postcss-cli/pulls/30/commits","review_comments_url":"https://api.github.com/repos/code42day/postcss-cli/pulls/30/comments","review_comment_url":"https://api.github.com/repos/code42day/postcss-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/code42day/postcss-cli/issues/30/comments","statuses_url":"https://api.github.com/repos/code42day/postcss-cli/statuses/6c0c1399e1a4d20fd8965402571e119dacb1eb0e","head":{"label":"mkurz:allowFileOverwrite","ref":"allowFileOverwrite","sha":"6c0c1399e1a4d20fd8965402571e119dacb1eb0e","user":{"login":"mkurz","id":644927,"avatar_url":"https://avatars.githubusercontent.com/u/644927?v=3","gravatar_id":"","url":"https://api.github.com/users/mkurz","html_url":"https://github.com/mkurz","followers_url":"https://api.github.com/users/mkurz/followers","following_url":"https://api.github.com/users/mkurz/following{/other_user}","gists_url":"https://api.github.com/users/mkurz/gists{/gist_id}","starred_url":"https://api.github.com/users/mkurz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkurz/subscriptions","organizations_url":"https://api.github.com/users/mkurz/orgs","repos_url":"https://api.github.com/users/mkurz/repos","events_url":"https://api.github.com/users/mkurz/events{/privacy}","received_events_url":"https://api.github.com/users/mkurz/received_events","type":"User","site_admin":false},"repo":{"id":43916408,"name":"postcss-cli","full_name":"mkurz/postcss-cli","owner":{"login":"mkurz","id":644927,"avatar_url":"https://avatars.githubusercontent.com/u/644927?v=3","gravatar_id":"","url":"https://api.github.com/users/mkurz","html_url":"https://github.com/mkurz","followers_url":"https://api.github.com/users/mkurz/followers","following_url":"https://api.github.com/users/mkurz/following{/other_user}","gists_url":"https://api.github.com/users/mkurz/gists{/gist_id}","starred_url":"https://api.github.com/users/mkurz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkurz/subscriptions","organizations_url":"https://api.github.com/users/mkurz/orgs","repos_url":"https://api.github.com/users/mkurz/repos","events_url":"https://api.github.com/users/mkurz/events{/privacy}","received_events_url":"https://api.github.com/users/mkurz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mkurz/postcss-cli","description":"CLI for postcss","fork":true,"url":"https://api.github.com/repos/mkurz/postcss-cli","forks_url":"https://api.github.com/repos/mkurz/postcss-cli/forks","keys_url":"https://api.github.com/repos/mkurz/postcss-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mkurz/postcss-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mkurz/postcss-cli/teams","hooks_url":"https://api.github.com/repos/mkurz/postcss-cli/hooks","issue_events_url":"https://api.github.com/repos/mkurz/postcss-cli/issues/events{/number}","events_url":"https://api.github.com/repos/mkurz/postcss-cli/events","assignees_url":"https://api.github.com/repos/mkurz/postcss-cli/assignees{/user}","branches_url":"https://api.github.com/repos/mkurz/postcss-cli/branches{/branch}","tags_url":"https://api.github.com/repos/mkurz/postcss-cli/tags","blobs_url":"https://api.github.com/repos/mkurz/postcss-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mkurz/postcss-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mkurz/postcss-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/mkurz/postcss-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mkurz/postcss-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/mkurz/postcss-cli/languages","stargazers_url":"https://api.github.com/repos/mkurz/postcss-cli/stargazers","contributors_url":"https://api.github.com/repos/mkurz/postcss-cli/contributors","subscribers_url":"https://api.github.com/repos/mkurz/postcss-cli/subscribers","subscription_url":"https://api.github.com/repos/mkurz/postcss-cli/subscription","commits_url":"https://api.github.com/repos/mkurz/postcss-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/mkurz/postcss-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/mkurz/postcss-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/mkurz/postcss-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/mkurz/postcss-cli/contents/{+path}","compare_url":"https://api.github.com/repos/mkurz/postcss-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mkurz/postcss-cli/merges","archive_url":"https://api.github.com/repos/mkurz/postcss-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mkurz/postcss-cli/downloads","issues_url":"https://api.github.com/repos/mkurz/postcss-cli/issues{/number}","pulls_url":"https://api.github.com/repos/mkurz/postcss-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/mkurz/postcss-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/mkurz/postcss-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mkurz/postcss-cli/labels{/name}","releases_url":"https://api.github.com/repos/mkurz/postcss-cli/releases{/id}","created_at":"2015-10-08T21:08:36Z","updated_at":"2015-10-08T21:08:37Z","pushed_at":"2015-10-09T13:47:08Z","git_url":"git://github.com/mkurz/postcss-cli.git","ssh_url":"git@github.com:mkurz/postcss-cli.git","clone_url":"https://github.com/mkurz/postcss-cli.git","svn_url":"https://github.com/mkurz/postcss-cli","homepage":"","size":278,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"code42day:master","ref":"master","sha":"5117a9583c3f068bb891ee30400e5cb85840de53","user":{"login":"code42day","id":1730542,"avatar_url":"https://avatars.githubusercontent.com/u/1730542?v=3","gravatar_id":"","url":"https://api.github.com/users/code42day","html_url":"https://github.com/code42day","followers_url":"https://api.github.com/users/code42day/followers","following_url":"https://api.github.com/users/code42day/following{/other_user}","gists_url":"https://api.github.com/users/code42day/gists{/gist_id}","starred_url":"https://api.github.com/users/code42day/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code42day/subscriptions","organizations_url":"https://api.github.com/users/code42day/orgs","repos_url":"https://api.github.com/users/code42day/repos","events_url":"https://api.github.com/users/code42day/events{/privacy}","received_events_url":"https://api.github.com/users/code42day/received_events","type":"Organization","site_admin":false},"repo":{"id":32055542,"name":"postcss-cli","full_name":"code42day/postcss-cli","owner":{"login":"code42day","id":1730542,"avatar_url":"https://avatars.githubusercontent.com/u/1730542?v=3","gravatar_id":"","url":"https://api.github.com/users/code42day","html_url":"https://github.com/code42day","followers_url":"https://api.github.com/users/code42day/followers","following_url":"https://api.github.com/users/code42day/following{/other_user}","gists_url":"https://api.github.com/users/code42day/gists{/gist_id}","starred_url":"https://api.github.com/users/code42day/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code42day/subscriptions","organizations_url":"https://api.github.com/users/code42day/orgs","repos_url":"https://api.github.com/users/code42day/repos","events_url":"https://api.github.com/users/code42day/events{/privacy}","received_events_url":"https://api.github.com/users/code42day/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/code42day/postcss-cli","description":"CLI for postcss","fork":false,"url":"https://api.github.com/repos/code42day/postcss-cli","forks_url":"https://api.github.com/repos/code42day/postcss-cli/forks","keys_url":"https://api.github.com/repos/code42day/postcss-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code42day/postcss-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code42day/postcss-cli/teams","hooks_url":"https://api.github.com/repos/code42day/postcss-cli/hooks","issue_events_url":"https://api.github.com/repos/code42day/postcss-cli/issues/events{/number}","events_url":"https://api.github.com/repos/code42day/postcss-cli/events","assignees_url":"https://api.github.com/repos/code42day/postcss-cli/assignees{/user}","branches_url":"https://api.github.com/repos/code42day/postcss-cli/branches{/branch}","tags_url":"https://api.github.com/repos/code42day/postcss-cli/tags","blobs_url":"https://api.github.com/repos/code42day/postcss-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code42day/postcss-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code42day/postcss-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/code42day/postcss-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code42day/postcss-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/code42day/postcss-cli/languages","stargazers_url":"https://api.github.com/repos/code42day/postcss-cli/stargazers","contributors_url":"https://api.github.com/repos/code42day/postcss-cli/contributors","subscribers_url":"https://api.github.com/repos/code42day/postcss-cli/subscribers","subscription_url":"https://api.github.com/repos/code42day/postcss-cli/subscription","commits_url":"https://api.github.com/repos/code42day/postcss-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/code42day/postcss-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/code42day/postcss-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/code42day/postcss-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/code42day/postcss-cli/contents/{+path}","compare_url":"https://api.github.com/repos/code42day/postcss-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code42day/postcss-cli/merges","archive_url":"https://api.github.com/repos/code42day/postcss-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code42day/postcss-cli/downloads","issues_url":"https://api.github.com/repos/code42day/postcss-cli/issues{/number}","pulls_url":"https://api.github.com/repos/code42day/postcss-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/code42day/postcss-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/code42day/postcss-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code42day/postcss-cli/labels{/name}","releases_url":"https://api.github.com/repos/code42day/postcss-cli/releases{/id}","created_at":"2015-03-12T03:43:29Z","updated_at":"2015-10-09T11:01:47Z","pushed_at":"2015-10-09T13:57:18Z","git_url":"git://github.com/code42day/postcss-cli.git","ssh_url":"git@github.com:code42day/postcss-cli.git","clone_url":"https://github.com/code42day/postcss-cli.git","svn_url":"https://github.com/code42day/postcss-cli","homepage":"","size":278,"stargazers_count":59,"watchers_count":59,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":1,"forks":10,"open_issues":1,"watchers":59,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/code42day/postcss-cli/pulls/30"},"html":{"href":"https://github.com/code42day/postcss-cli/pull/30"},"issue":{"href":"https://api.github.com/repos/code42day/postcss-cli/issues/30"},"comments":{"href":"https://api.github.com/repos/code42day/postcss-cli/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/code42day/postcss-cli/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/code42day/postcss-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/code42day/postcss-cli/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/code42day/postcss-cli/statuses/6c0c1399e1a4d20fd8965402571e119dacb1eb0e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"pirxpilot","id":3240,"avatar_url":"https://avatars.githubusercontent.com/u/3240?v=3","gravatar_id":"","url":"https://api.github.com/users/pirxpilot","html_url":"https://github.com/pirxpilot","followers_url":"https://api.github.com/users/pirxpilot/followers","following_url":"https://api.github.com/users/pirxpilot/following{/other_user}","gists_url":"https://api.github.com/users/pirxpilot/gists{/gist_id}","starred_url":"https://api.github.com/users/pirxpilot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pirxpilot/subscriptions","organizations_url":"https://api.github.com/users/pirxpilot/orgs","repos_url":"https://api.github.com/users/pirxpilot/repos","events_url":"https://api.github.com/users/pirxpilot/events{/privacy}","received_events_url":"https://api.github.com/users/pirxpilot/received_events","type":"User","site_admin":false},"comments":10,"review_comments":0,"commits":3,"additions":39,"deletions":7,"changed_files":5}}