{"action":"created","comment":{"url":"https://api.github.com/repos/composer/satis/pulls/comments/60373986","id":60373986,"diff_hunk":"@@ -53,15 +59,55 @@ public function dump(array $packages)\n         $archiveManager->setOverwriteFiles(false);\n \n         shuffle($packages);\n+\n+        $progressBar = null;\n+        $hasStarted = false;\n+        $verbosity = $this->output->getVerbosity();\n+        $isStats = $this->input->getOption('stats') && OutputInterface::VERBOSITY_NORMAL == $verbosity;\n+\n+        if ($isStats) {\n+            $packageCount = 0;\n+\n+            foreach ($packages as $package) {\n+                if (!$helper->isSkippable($package)) {\n+                    ++$packageCount;\n+                }\n+            }\n+\n+            $this->composer->setDownloadManager($this->composer->getDownloadManager());","path":"src/Composer/Satis/Builder/ArchiveBuilder.php","position":39,"original_position":39,"commit_id":"b0b47f174ffeb865d92b39b0a25469e641e177d6","original_commit_id":"b0b47f174ffeb865d92b39b0a25469e641e177d6","user":{"login":"alcohol","id":21414,"avatar_url":"https://avatars.githubusercontent.com/u/21414?v=3","gravatar_id":"","url":"https://api.github.com/users/alcohol","html_url":"https://github.com/alcohol","followers_url":"https://api.github.com/users/alcohol/followers","following_url":"https://api.github.com/users/alcohol/following{/other_user}","gists_url":"https://api.github.com/users/alcohol/gists{/gist_id}","starred_url":"https://api.github.com/users/alcohol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcohol/subscriptions","organizations_url":"https://api.github.com/users/alcohol/orgs","repos_url":"https://api.github.com/users/alcohol/repos","events_url":"https://api.github.com/users/alcohol/events{/privacy}","received_events_url":"https://api.github.com/users/alcohol/received_events","type":"User","site_admin":false},"body":"Yes :-).","created_at":"2016-04-20T09:09:10Z","updated_at":"2016-04-20T09:09:10Z","html_url":"https://github.com/composer/satis/pull/328#discussion_r60373986","pull_request_url":"https://api.github.com/repos/composer/satis/pulls/328","_links":{"self":{"href":"https://api.github.com/repos/composer/satis/pulls/comments/60373986"},"html":{"href":"https://github.com/composer/satis/pull/328#discussion_r60373986"},"pull_request":{"href":"https://api.github.com/repos/composer/satis/pulls/328"}}},"pull_request":{"url":"https://api.github.com/repos/composer/satis/pulls/328","id":67093491,"html_url":"https://github.com/composer/satis/pull/328","diff_url":"https://github.com/composer/satis/pull/328.diff","patch_url":"https://github.com/composer/satis/pull/328.patch","issue_url":"https://api.github.com/repos/composer/satis/issues/328","number":328,"state":"closed","locked":false,"title":"Add build command \"stats\" option to display a progress bar.","user":{"login":"Divi","id":1122160,"avatar_url":"https://avatars.githubusercontent.com/u/1122160?v=3","gravatar_id":"","url":"https://api.github.com/users/Divi","html_url":"https://github.com/Divi","followers_url":"https://api.github.com/users/Divi/followers","following_url":"https://api.github.com/users/Divi/following{/other_user}","gists_url":"https://api.github.com/users/Divi/gists{/gist_id}","starred_url":"https://api.github.com/users/Divi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Divi/subscriptions","organizations_url":"https://api.github.com/users/Divi/orgs","repos_url":"https://api.github.com/users/Divi/repos","events_url":"https://api.github.com/users/Divi/events{/privacy}","received_events_url":"https://api.github.com/users/Divi/received_events","type":"User","site_admin":false},"body":"This will hide all messages like \"Dumping foo/bar...\" to show a progress bar instead.\r\n\r\nExample :\r\n\r\n```\r\nScanning packages\r\nCreating local downloads in 'web/dist'\r\n  1/86 [>---------------------------]   1% - Installing foo/bar (dev-master)\r\n```\r\n\r\nThe verbosity override the option : if the build command is executed with `-v(vv)` option, the `stats` option will be disabled.\r\nUseful when having a lot of packages.","created_at":"2016-04-19T21:31:38Z","updated_at":"2016-04-20T09:09:10Z","closed_at":"2016-04-20T07:24:10Z","merged_at":"2016-04-20T07:24:10Z","merge_commit_sha":"d3cb8f4f93fa42e6363824d794c853edd097714e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/composer/satis/pulls/328/commits","review_comments_url":"https://api.github.com/repos/composer/satis/pulls/328/comments","review_comment_url":"https://api.github.com/repos/composer/satis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/composer/satis/issues/328/comments","statuses_url":"https://api.github.com/repos/composer/satis/statuses/b0b47f174ffeb865d92b39b0a25469e641e177d6","head":{"label":"Divi:master","ref":"master","sha":"b0b47f174ffeb865d92b39b0a25469e641e177d6","user":{"login":"Divi","id":1122160,"avatar_url":"https://avatars.githubusercontent.com/u/1122160?v=3","gravatar_id":"","url":"https://api.github.com/users/Divi","html_url":"https://github.com/Divi","followers_url":"https://api.github.com/users/Divi/followers","following_url":"https://api.github.com/users/Divi/following{/other_user}","gists_url":"https://api.github.com/users/Divi/gists{/gist_id}","starred_url":"https://api.github.com/users/Divi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Divi/subscriptions","organizations_url":"https://api.github.com/users/Divi/orgs","repos_url":"https://api.github.com/users/Divi/repos","events_url":"https://api.github.com/users/Divi/events{/privacy}","received_events_url":"https://api.github.com/users/Divi/received_events","type":"User","site_admin":false},"repo":{"id":56632993,"name":"satis","full_name":"Divi/satis","owner":{"login":"Divi","id":1122160,"avatar_url":"https://avatars.githubusercontent.com/u/1122160?v=3","gravatar_id":"","url":"https://api.github.com/users/Divi","html_url":"https://github.com/Divi","followers_url":"https://api.github.com/users/Divi/followers","following_url":"https://api.github.com/users/Divi/following{/other_user}","gists_url":"https://api.github.com/users/Divi/gists{/gist_id}","starred_url":"https://api.github.com/users/Divi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Divi/subscriptions","organizations_url":"https://api.github.com/users/Divi/orgs","repos_url":"https://api.github.com/users/Divi/repos","events_url":"https://api.github.com/users/Divi/events{/privacy}","received_events_url":"https://api.github.com/users/Divi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Divi/satis","description":"Simple static Composer repository generator","fork":true,"url":"https://api.github.com/repos/Divi/satis","forks_url":"https://api.github.com/repos/Divi/satis/forks","keys_url":"https://api.github.com/repos/Divi/satis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Divi/satis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Divi/satis/teams","hooks_url":"https://api.github.com/repos/Divi/satis/hooks","issue_events_url":"https://api.github.com/repos/Divi/satis/issues/events{/number}","events_url":"https://api.github.com/repos/Divi/satis/events","assignees_url":"https://api.github.com/repos/Divi/satis/assignees{/user}","branches_url":"https://api.github.com/repos/Divi/satis/branches{/branch}","tags_url":"https://api.github.com/repos/Divi/satis/tags","blobs_url":"https://api.github.com/repos/Divi/satis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Divi/satis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Divi/satis/git/refs{/sha}","trees_url":"https://api.github.com/repos/Divi/satis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Divi/satis/statuses/{sha}","languages_url":"https://api.github.com/repos/Divi/satis/languages","stargazers_url":"https://api.github.com/repos/Divi/satis/stargazers","contributors_url":"https://api.github.com/repos/Divi/satis/contributors","subscribers_url":"https://api.github.com/repos/Divi/satis/subscribers","subscription_url":"https://api.github.com/repos/Divi/satis/subscription","commits_url":"https://api.github.com/repos/Divi/satis/commits{/sha}","git_commits_url":"https://api.github.com/repos/Divi/satis/git/commits{/sha}","comments_url":"https://api.github.com/repos/Divi/satis/comments{/number}","issue_comment_url":"https://api.github.com/repos/Divi/satis/issues/comments{/number}","contents_url":"https://api.github.com/repos/Divi/satis/contents/{+path}","compare_url":"https://api.github.com/repos/Divi/satis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Divi/satis/merges","archive_url":"https://api.github.com/repos/Divi/satis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Divi/satis/downloads","issues_url":"https://api.github.com/repos/Divi/satis/issues{/number}","pulls_url":"https://api.github.com/repos/Divi/satis/pulls{/number}","milestones_url":"https://api.github.com/repos/Divi/satis/milestones{/number}","notifications_url":"https://api.github.com/repos/Divi/satis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Divi/satis/labels{/name}","releases_url":"https://api.github.com/repos/Divi/satis/releases{/id}","deployments_url":"https://api.github.com/repos/Divi/satis/deployments","created_at":"2016-04-19T21:21:43Z","updated_at":"2016-04-19T21:21:44Z","pushed_at":"2016-04-19T21:27:37Z","git_url":"git://github.com/Divi/satis.git","ssh_url":"git@github.com:Divi/satis.git","clone_url":"https://github.com/Divi/satis.git","svn_url":"https://github.com/Divi/satis","homepage":"","size":436,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"composer:master","ref":"master","sha":"1f7a96b73ae2f13edecee750c6c1da1105103a16","user":{"login":"composer","id":837015,"avatar_url":"https://avatars.githubusercontent.com/u/837015?v=3","gravatar_id":"","url":"https://api.github.com/users/composer","html_url":"https://github.com/composer","followers_url":"https://api.github.com/users/composer/followers","following_url":"https://api.github.com/users/composer/following{/other_user}","gists_url":"https://api.github.com/users/composer/gists{/gist_id}","starred_url":"https://api.github.com/users/composer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/composer/subscriptions","organizations_url":"https://api.github.com/users/composer/orgs","repos_url":"https://api.github.com/users/composer/repos","events_url":"https://api.github.com/users/composer/events{/privacy}","received_events_url":"https://api.github.com/users/composer/received_events","type":"Organization","site_admin":false},"repo":{"id":3192821,"name":"satis","full_name":"composer/satis","owner":{"login":"composer","id":837015,"avatar_url":"https://avatars.githubusercontent.com/u/837015?v=3","gravatar_id":"","url":"https://api.github.com/users/composer","html_url":"https://github.com/composer","followers_url":"https://api.github.com/users/composer/followers","following_url":"https://api.github.com/users/composer/following{/other_user}","gists_url":"https://api.github.com/users/composer/gists{/gist_id}","starred_url":"https://api.github.com/users/composer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/composer/subscriptions","organizations_url":"https://api.github.com/users/composer/orgs","repos_url":"https://api.github.com/users/composer/repos","events_url":"https://api.github.com/users/composer/events{/privacy}","received_events_url":"https://api.github.com/users/composer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/composer/satis","description":"Simple static Composer repository generator","fork":false,"url":"https://api.github.com/repos/composer/satis","forks_url":"https://api.github.com/repos/composer/satis/forks","keys_url":"https://api.github.com/repos/composer/satis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/composer/satis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/composer/satis/teams","hooks_url":"https://api.github.com/repos/composer/satis/hooks","issue_events_url":"https://api.github.com/repos/composer/satis/issues/events{/number}","events_url":"https://api.github.com/repos/composer/satis/events","assignees_url":"https://api.github.com/repos/composer/satis/assignees{/user}","branches_url":"https://api.github.com/repos/composer/satis/branches{/branch}","tags_url":"https://api.github.com/repos/composer/satis/tags","blobs_url":"https://api.github.com/repos/composer/satis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/composer/satis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/composer/satis/git/refs{/sha}","trees_url":"https://api.github.com/repos/composer/satis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/composer/satis/statuses/{sha}","languages_url":"https://api.github.com/repos/composer/satis/languages","stargazers_url":"https://api.github.com/repos/composer/satis/stargazers","contributors_url":"https://api.github.com/repos/composer/satis/contributors","subscribers_url":"https://api.github.com/repos/composer/satis/subscribers","subscription_url":"https://api.github.com/repos/composer/satis/subscription","commits_url":"https://api.github.com/repos/composer/satis/commits{/sha}","git_commits_url":"https://api.github.com/repos/composer/satis/git/commits{/sha}","comments_url":"https://api.github.com/repos/composer/satis/comments{/number}","issue_comment_url":"https://api.github.com/repos/composer/satis/issues/comments{/number}","contents_url":"https://api.github.com/repos/composer/satis/contents/{+path}","compare_url":"https://api.github.com/repos/composer/satis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/composer/satis/merges","archive_url":"https://api.github.com/repos/composer/satis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/composer/satis/downloads","issues_url":"https://api.github.com/repos/composer/satis/issues{/number}","pulls_url":"https://api.github.com/repos/composer/satis/pulls{/number}","milestones_url":"https://api.github.com/repos/composer/satis/milestones{/number}","notifications_url":"https://api.github.com/repos/composer/satis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/composer/satis/labels{/name}","releases_url":"https://api.github.com/repos/composer/satis/releases{/id}","deployments_url":"https://api.github.com/repos/composer/satis/deployments","created_at":"2012-01-16T18:10:58Z","updated_at":"2016-04-20T07:36:42Z","pushed_at":"2016-04-20T07:24:10Z","git_url":"git://github.com/composer/satis.git","ssh_url":"git@github.com:composer/satis.git","clone_url":"https://github.com/composer/satis.git","svn_url":"https://github.com/composer/satis","homepage":"","size":790,"stargazers_count":1065,"watchers_count":1065,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":252,"mirror_url":null,"open_issues_count":52,"forks":252,"open_issues":52,"watchers":1065,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/composer/satis/pulls/328"},"html":{"href":"https://github.com/composer/satis/pull/328"},"issue":{"href":"https://api.github.com/repos/composer/satis/issues/328"},"comments":{"href":"https://api.github.com/repos/composer/satis/issues/328/comments"},"review_comments":{"href":"https://api.github.com/repos/composer/satis/pulls/328/comments"},"review_comment":{"href":"https://api.github.com/repos/composer/satis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/composer/satis/pulls/328/commits"},"statuses":{"href":"https://api.github.com/repos/composer/satis/statuses/b0b47f174ffeb865d92b39b0a25469e641e177d6"}}}}