{"action":"opened","number":300,"pull_request":{"url":"https://api.github.com/repos/Codegyre/Robo/pulls/300","id":63758445,"html_url":"https://github.com/Codegyre/Robo/pull/300","diff_url":"https://github.com/Codegyre/Robo/pull/300.diff","patch_url":"https://github.com/Codegyre/Robo/pull/300.patch","issue_url":"https://api.github.com/repos/Codegyre/Robo/issues/300","number":300,"state":"open","locked":false,"title":"Decouple progress bar from tasks that use them","user":{"login":"greg-1-anderson","id":612191,"avatar_url":"https://avatars.githubusercontent.com/u/612191?v=3","gravatar_id":"","url":"https://api.github.com/users/greg-1-anderson","html_url":"https://github.com/greg-1-anderson","followers_url":"https://api.github.com/users/greg-1-anderson/followers","following_url":"https://api.github.com/users/greg-1-anderson/following{/other_user}","gists_url":"https://api.github.com/users/greg-1-anderson/gists{/gist_id}","starred_url":"https://api.github.com/users/greg-1-anderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greg-1-anderson/subscriptions","organizations_url":"https://api.github.com/users/greg-1-anderson/orgs","repos_url":"https://api.github.com/users/greg-1-anderson/repos","events_url":"https://api.github.com/users/greg-1-anderson/events{/privacy}","received_events_url":"https://api.github.com/users/greg-1-anderson/received_events","type":"User","site_admin":false},"body":"Tasks can now `implement ProgressIndicatorAwareInterface ` and `use ProgressIndicatorAwareTrait` to have access to a progress bar without having a direct reference to IO or an output object.\r\n\r\nThe task must still call `startProgressIndicator()` & c. to make the progress indicator go, of course. If the DI container does not have a progress bar, though, then these calls will be no-ops, so programs that do not provide progress displays may still use tasks that utilize them.\r\n\r\nNote that ProgressIndicatorAwareTrait has a `use Timer` and manages the timer automatically.  Nearly automatically, anyway; tasks must still insert `['time' => $this->getExecutionTime()]` into their Result manually.\r\n\r\nNote that I added a `parascript.php` script in the test data, and call it from RoboFile::tryPara().  There is a --printed option, so you can see parallel execution with or without the command output of each subprocess.\r\n\r\nThere are a couple of minor hacks in ProgressIndicatorAwareTrait to work around behaviors of the upstream. We could also fix these by subclassing the ProgressBar, but I think it would be sufficient to leave it like this for now, & eventually fix in the upstream.","created_at":"2016-03-22T17:18:26Z","updated_at":"2016-03-22T17:18:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Codegyre/Robo/pulls/300/commits","review_comments_url":"https://api.github.com/repos/Codegyre/Robo/pulls/300/comments","review_comment_url":"https://api.github.com/repos/Codegyre/Robo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Codegyre/Robo/issues/300/comments","statuses_url":"https://api.github.com/repos/Codegyre/Robo/statuses/13cda0e1278495e87ba82b8c7d1b9910c680b6a1","head":{"label":"Codegyre:decouple-progressbar","ref":"decouple-progressbar","sha":"13cda0e1278495e87ba82b8c7d1b9910c680b6a1","user":{"login":"Codegyre","id":4776069,"avatar_url":"https://avatars.githubusercontent.com/u/4776069?v=3","gravatar_id":"","url":"https://api.github.com/users/Codegyre","html_url":"https://github.com/Codegyre","followers_url":"https://api.github.com/users/Codegyre/followers","following_url":"https://api.github.com/users/Codegyre/following{/other_user}","gists_url":"https://api.github.com/users/Codegyre/gists{/gist_id}","starred_url":"https://api.github.com/users/Codegyre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Codegyre/subscriptions","organizations_url":"https://api.github.com/users/Codegyre/orgs","repos_url":"https://api.github.com/users/Codegyre/repos","events_url":"https://api.github.com/users/Codegyre/events{/privacy}","received_events_url":"https://api.github.com/users/Codegyre/received_events","type":"Organization","site_admin":false},"repo":{"id":16185196,"name":"Robo","full_name":"Codegyre/Robo","owner":{"login":"Codegyre","id":4776069,"avatar_url":"https://avatars.githubusercontent.com/u/4776069?v=3","gravatar_id":"","url":"https://api.github.com/users/Codegyre","html_url":"https://github.com/Codegyre","followers_url":"https://api.github.com/users/Codegyre/followers","following_url":"https://api.github.com/users/Codegyre/following{/other_user}","gists_url":"https://api.github.com/users/Codegyre/gists{/gist_id}","starred_url":"https://api.github.com/users/Codegyre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Codegyre/subscriptions","organizations_url":"https://api.github.com/users/Codegyre/orgs","repos_url":"https://api.github.com/users/Codegyre/repos","events_url":"https://api.github.com/users/Codegyre/events{/privacy}","received_events_url":"https://api.github.com/users/Codegyre/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Codegyre/Robo","description":"Modern task runner for PHP","fork":false,"url":"https://api.github.com/repos/Codegyre/Robo","forks_url":"https://api.github.com/repos/Codegyre/Robo/forks","keys_url":"https://api.github.com/repos/Codegyre/Robo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Codegyre/Robo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Codegyre/Robo/teams","hooks_url":"https://api.github.com/repos/Codegyre/Robo/hooks","issue_events_url":"https://api.github.com/repos/Codegyre/Robo/issues/events{/number}","events_url":"https://api.github.com/repos/Codegyre/Robo/events","assignees_url":"https://api.github.com/repos/Codegyre/Robo/assignees{/user}","branches_url":"https://api.github.com/repos/Codegyre/Robo/branches{/branch}","tags_url":"https://api.github.com/repos/Codegyre/Robo/tags","blobs_url":"https://api.github.com/repos/Codegyre/Robo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Codegyre/Robo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Codegyre/Robo/git/refs{/sha}","trees_url":"https://api.github.com/repos/Codegyre/Robo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Codegyre/Robo/statuses/{sha}","languages_url":"https://api.github.com/repos/Codegyre/Robo/languages","stargazers_url":"https://api.github.com/repos/Codegyre/Robo/stargazers","contributors_url":"https://api.github.com/repos/Codegyre/Robo/contributors","subscribers_url":"https://api.github.com/repos/Codegyre/Robo/subscribers","subscription_url":"https://api.github.com/repos/Codegyre/Robo/subscription","commits_url":"https://api.github.com/repos/Codegyre/Robo/commits{/sha}","git_commits_url":"https://api.github.com/repos/Codegyre/Robo/git/commits{/sha}","comments_url":"https://api.github.com/repos/Codegyre/Robo/comments{/number}","issue_comment_url":"https://api.github.com/repos/Codegyre/Robo/issues/comments{/number}","contents_url":"https://api.github.com/repos/Codegyre/Robo/contents/{+path}","compare_url":"https://api.github.com/repos/Codegyre/Robo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Codegyre/Robo/merges","archive_url":"https://api.github.com/repos/Codegyre/Robo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Codegyre/Robo/downloads","issues_url":"https://api.github.com/repos/Codegyre/Robo/issues{/number}","pulls_url":"https://api.github.com/repos/Codegyre/Robo/pulls{/number}","milestones_url":"https://api.github.com/repos/Codegyre/Robo/milestones{/number}","notifications_url":"https://api.github.com/repos/Codegyre/Robo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Codegyre/Robo/labels{/name}","releases_url":"https://api.github.com/repos/Codegyre/Robo/releases{/id}","deployments_url":"https://api.github.com/repos/Codegyre/Robo/deployments","created_at":"2014-01-23T20:47:44Z","updated_at":"2016-03-22T09:36:11Z","pushed_at":"2016-03-22T17:11:19Z","git_url":"git://github.com/Codegyre/Robo.git","ssh_url":"git@github.com:Codegyre/Robo.git","clone_url":"https://github.com/Codegyre/Robo.git","svn_url":"https://github.com/Codegyre/Robo","homepage":"http://robo.li","size":7349,"stargazers_count":1063,"watchers_count":1063,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":127,"mirror_url":null,"open_issues_count":62,"forks":127,"open_issues":62,"watchers":1063,"default_branch":"master"}},"base":{"label":"Codegyre:master","ref":"master","sha":"032f19145e45c78108520db97528530024e22e84","user":{"login":"Codegyre","id":4776069,"avatar_url":"https://avatars.githubusercontent.com/u/4776069?v=3","gravatar_id":"","url":"https://api.github.com/users/Codegyre","html_url":"https://github.com/Codegyre","followers_url":"https://api.github.com/users/Codegyre/followers","following_url":"https://api.github.com/users/Codegyre/following{/other_user}","gists_url":"https://api.github.com/users/Codegyre/gists{/gist_id}","starred_url":"https://api.github.com/users/Codegyre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Codegyre/subscriptions","organizations_url":"https://api.github.com/users/Codegyre/orgs","repos_url":"https://api.github.com/users/Codegyre/repos","events_url":"https://api.github.com/users/Codegyre/events{/privacy}","received_events_url":"https://api.github.com/users/Codegyre/received_events","type":"Organization","site_admin":false},"repo":{"id":16185196,"name":"Robo","full_name":"Codegyre/Robo","owner":{"login":"Codegyre","id":4776069,"avatar_url":"https://avatars.githubusercontent.com/u/4776069?v=3","gravatar_id":"","url":"https://api.github.com/users/Codegyre","html_url":"https://github.com/Codegyre","followers_url":"https://api.github.com/users/Codegyre/followers","following_url":"https://api.github.com/users/Codegyre/following{/other_user}","gists_url":"https://api.github.com/users/Codegyre/gists{/gist_id}","starred_url":"https://api.github.com/users/Codegyre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Codegyre/subscriptions","organizations_url":"https://api.github.com/users/Codegyre/orgs","repos_url":"https://api.github.com/users/Codegyre/repos","events_url":"https://api.github.com/users/Codegyre/events{/privacy}","received_events_url":"https://api.github.com/users/Codegyre/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Codegyre/Robo","description":"Modern task runner for PHP","fork":false,"url":"https://api.github.com/repos/Codegyre/Robo","forks_url":"https://api.github.com/repos/Codegyre/Robo/forks","keys_url":"https://api.github.com/repos/Codegyre/Robo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Codegyre/Robo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Codegyre/Robo/teams","hooks_url":"https://api.github.com/repos/Codegyre/Robo/hooks","issue_events_url":"https://api.github.com/repos/Codegyre/Robo/issues/events{/number}","events_url":"https://api.github.com/repos/Codegyre/Robo/events","assignees_url":"https://api.github.com/repos/Codegyre/Robo/assignees{/user}","branches_url":"https://api.github.com/repos/Codegyre/Robo/branches{/branch}","tags_url":"https://api.github.com/repos/Codegyre/Robo/tags","blobs_url":"https://api.github.com/repos/Codegyre/Robo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Codegyre/Robo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Codegyre/Robo/git/refs{/sha}","trees_url":"https://api.github.com/repos/Codegyre/Robo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Codegyre/Robo/statuses/{sha}","languages_url":"https://api.github.com/repos/Codegyre/Robo/languages","stargazers_url":"https://api.github.com/repos/Codegyre/Robo/stargazers","contributors_url":"https://api.github.com/repos/Codegyre/Robo/contributors","subscribers_url":"https://api.github.com/repos/Codegyre/Robo/subscribers","subscription_url":"https://api.github.com/repos/Codegyre/Robo/subscription","commits_url":"https://api.github.com/repos/Codegyre/Robo/commits{/sha}","git_commits_url":"https://api.github.com/repos/Codegyre/Robo/git/commits{/sha}","comments_url":"https://api.github.com/repos/Codegyre/Robo/comments{/number}","issue_comment_url":"https://api.github.com/repos/Codegyre/Robo/issues/comments{/number}","contents_url":"https://api.github.com/repos/Codegyre/Robo/contents/{+path}","compare_url":"https://api.github.com/repos/Codegyre/Robo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Codegyre/Robo/merges","archive_url":"https://api.github.com/repos/Codegyre/Robo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Codegyre/Robo/downloads","issues_url":"https://api.github.com/repos/Codegyre/Robo/issues{/number}","pulls_url":"https://api.github.com/repos/Codegyre/Robo/pulls{/number}","milestones_url":"https://api.github.com/repos/Codegyre/Robo/milestones{/number}","notifications_url":"https://api.github.com/repos/Codegyre/Robo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Codegyre/Robo/labels{/name}","releases_url":"https://api.github.com/repos/Codegyre/Robo/releases{/id}","deployments_url":"https://api.github.com/repos/Codegyre/Robo/deployments","created_at":"2014-01-23T20:47:44Z","updated_at":"2016-03-22T09:36:11Z","pushed_at":"2016-03-22T17:11:19Z","git_url":"git://github.com/Codegyre/Robo.git","ssh_url":"git@github.com:Codegyre/Robo.git","clone_url":"https://github.com/Codegyre/Robo.git","svn_url":"https://github.com/Codegyre/Robo","homepage":"http://robo.li","size":7349,"stargazers_count":1063,"watchers_count":1063,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":127,"mirror_url":null,"open_issues_count":62,"forks":127,"open_issues":62,"watchers":1063,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Codegyre/Robo/pulls/300"},"html":{"href":"https://github.com/Codegyre/Robo/pull/300"},"issue":{"href":"https://api.github.com/repos/Codegyre/Robo/issues/300"},"comments":{"href":"https://api.github.com/repos/Codegyre/Robo/issues/300/comments"},"review_comments":{"href":"https://api.github.com/repos/Codegyre/Robo/pulls/300/comments"},"review_comment":{"href":"https://api.github.com/repos/Codegyre/Robo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Codegyre/Robo/pulls/300/commits"},"statuses":{"href":"https://api.github.com/repos/Codegyre/Robo/statuses/13cda0e1278495e87ba82b8c7d1b9910c680b6a1"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":134,"deletions":39,"changed_files":8}}