{"action":"created","comment":{"url":"https://api.github.com/repos/Workiva/dart_dev/pulls/comments/96048874","pull_request_review_id":16620597,"id":96048874,"diff_hunk":"@@ -0,0 +1,39 @@\n+import 'dart:async';\n+\n+import 'package:args/args.dart';\n+\n+import 'package:dart_dev/util.dart' show reporter;\n+\n+import 'package:dart_dev/src/tasks/task_runner/api.dart';\n+import 'package:dart_dev/src/tasks/cli.dart';\n+import 'package:dart_dev/src/tasks/config.dart';\n+\n+class TaskRunnerCli extends TaskCli {\n+  final ArgParser argParser = new ArgParser()\n+    ..addOption('config',\n+        help:\n+            'Configuration options should be performed in local dev.dart file');\n+\n+  final String command = 'task-runner';\n+\n+  Future<CliResult> run(ArgResults parsedArgs, {bool color: true}) async {\n+    List<String> tasksToRun = config.taskRunner.tasksToRun;\n+\n+    if (tasksToRun.isEmpty) {\n+      return new CliResult.fail(\n+          'There are no currently defined tasks in your dev.dart file.');\n+    }\n+\n+    TaskRunner task = await runTasks(tasksToRun: tasksToRun);\n+\n+    reporter.logGroup('Tasks run: \\'${tasksToRun.join('\\', \\'')}\\'',","path":"lib/src/tasks/task_runner/cli.dart","position":29,"original_position":29,"commit_id":"5328588334bc56c049c4ea3fa2cbc71776b95866","original_commit_id":"5328588334bc56c049c4ea3fa2cbc71776b95866","user":{"login":"bencampbell-wf","id":11619752,"avatar_url":"https://avatars.githubusercontent.com/u/11619752?v=3","gravatar_id":"","url":"https://api.github.com/users/bencampbell-wf","html_url":"https://github.com/bencampbell-wf","followers_url":"https://api.github.com/users/bencampbell-wf/followers","following_url":"https://api.github.com/users/bencampbell-wf/following{/other_user}","gists_url":"https://api.github.com/users/bencampbell-wf/gists{/gist_id}","starred_url":"https://api.github.com/users/bencampbell-wf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bencampbell-wf/subscriptions","organizations_url":"https://api.github.com/users/bencampbell-wf/orgs","repos_url":"https://api.github.com/users/bencampbell-wf/repos","events_url":"https://api.github.com/users/bencampbell-wf/events{/privacy}","received_events_url":"https://api.github.com/users/bencampbell-wf/received_events","type":"User","site_admin":false},"body":"😄  So much escaping!","created_at":"2017-01-13T18:44:36Z","updated_at":"2017-01-13T18:46:25Z","html_url":"https://github.com/Workiva/dart_dev/pull/199#discussion_r96048874","pull_request_url":"https://api.github.com/repos/Workiva/dart_dev/pulls/199","_links":{"self":{"href":"https://api.github.com/repos/Workiva/dart_dev/pulls/comments/96048874"},"html":{"href":"https://github.com/Workiva/dart_dev/pull/199#discussion_r96048874"},"pull_request":{"href":"https://api.github.com/repos/Workiva/dart_dev/pulls/199"}}},"pull_request":{"url":"https://api.github.com/repos/Workiva/dart_dev/pulls/199","id":98368339,"html_url":"https://github.com/Workiva/dart_dev/pull/199","diff_url":"https://github.com/Workiva/dart_dev/pull/199.diff","patch_url":"https://github.com/Workiva/dart_dev/pull/199.patch","issue_url":"https://api.github.com/repos/Workiva/dart_dev/issues/199","number":199,"state":"open","locked":false,"title":"CP-3183 Create dart_dev task to allow for tasks to run con-currently","user":{"login":"jayudey-wf","id":4429043,"avatar_url":"https://avatars.githubusercontent.com/u/4429043?v=3","gravatar_id":"","url":"https://api.github.com/users/jayudey-wf","html_url":"https://github.com/jayudey-wf","followers_url":"https://api.github.com/users/jayudey-wf/followers","following_url":"https://api.github.com/users/jayudey-wf/following{/other_user}","gists_url":"https://api.github.com/users/jayudey-wf/gists{/gist_id}","starred_url":"https://api.github.com/users/jayudey-wf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayudey-wf/subscriptions","organizations_url":"https://api.github.com/users/jayudey-wf/orgs","repos_url":"https://api.github.com/users/jayudey-wf/repos","events_url":"https://api.github.com/users/jayudey-wf/events{/privacy}","received_events_url":"https://api.github.com/users/jayudey-wf/received_events","type":"User","site_admin":false},"body":"## Issue\r\n- There is no way to easily run dart tasks asynchronously.\r\n\r\n## Changes\r\n**Source:**\r\n- Created a task to allow for a user to specify dart commands that they wish to run in parallel.\r\n\r\n**Tests:**\r\n- added\r\n\r\n## Areas of Regression\r\n- n/a (new tasks was added)\r\n\r\n## Testing\r\n- passing CI\r\n- install into this branch into a repo and ensure that the tasks complete as expected (I tried doing this on travis CI for dart_dev and I don't think the instance could handle running the tasks)\r\n\r\n## Code Review\r\n@Workiva/web-platform-pp ","created_at":"2016-12-16T16:59:12Z","updated_at":"2017-01-13T18:46:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5a18eb16d0af0bddebb9739b8ea2c969e17147a5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Workiva/dart_dev/pulls/199/commits","review_comments_url":"https://api.github.com/repos/Workiva/dart_dev/pulls/199/comments","review_comment_url":"https://api.github.com/repos/Workiva/dart_dev/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Workiva/dart_dev/issues/199/comments","statuses_url":"https://api.github.com/repos/Workiva/dart_dev/statuses/5328588334bc56c049c4ea3fa2cbc71776b95866","head":{"label":"Workiva:task-runner","ref":"task-runner","sha":"5328588334bc56c049c4ea3fa2cbc71776b95866","user":{"login":"Workiva","id":1087529,"avatar_url":"https://avatars.githubusercontent.com/u/1087529?v=3","gravatar_id":"","url":"https://api.github.com/users/Workiva","html_url":"https://github.com/Workiva","followers_url":"https://api.github.com/users/Workiva/followers","following_url":"https://api.github.com/users/Workiva/following{/other_user}","gists_url":"https://api.github.com/users/Workiva/gists{/gist_id}","starred_url":"https://api.github.com/users/Workiva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Workiva/subscriptions","organizations_url":"https://api.github.com/users/Workiva/orgs","repos_url":"https://api.github.com/users/Workiva/repos","events_url":"https://api.github.com/users/Workiva/events{/privacy}","received_events_url":"https://api.github.com/users/Workiva/received_events","type":"Organization","site_admin":false},"repo":{"id":37938617,"name":"dart_dev","full_name":"Workiva/dart_dev","owner":{"login":"Workiva","id":1087529,"avatar_url":"https://avatars.githubusercontent.com/u/1087529?v=3","gravatar_id":"","url":"https://api.github.com/users/Workiva","html_url":"https://github.com/Workiva","followers_url":"https://api.github.com/users/Workiva/followers","following_url":"https://api.github.com/users/Workiva/following{/other_user}","gists_url":"https://api.github.com/users/Workiva/gists{/gist_id}","starred_url":"https://api.github.com/users/Workiva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Workiva/subscriptions","organizations_url":"https://api.github.com/users/Workiva/orgs","repos_url":"https://api.github.com/users/Workiva/repos","events_url":"https://api.github.com/users/Workiva/events{/privacy}","received_events_url":"https://api.github.com/users/Workiva/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Workiva/dart_dev","description":"Centralized tooling for Dart projects. Consistent interface across projects. Easily configurable. ","fork":false,"url":"https://api.github.com/repos/Workiva/dart_dev","forks_url":"https://api.github.com/repos/Workiva/dart_dev/forks","keys_url":"https://api.github.com/repos/Workiva/dart_dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Workiva/dart_dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Workiva/dart_dev/teams","hooks_url":"https://api.github.com/repos/Workiva/dart_dev/hooks","issue_events_url":"https://api.github.com/repos/Workiva/dart_dev/issues/events{/number}","events_url":"https://api.github.com/repos/Workiva/dart_dev/events","assignees_url":"https://api.github.com/repos/Workiva/dart_dev/assignees{/user}","branches_url":"https://api.github.com/repos/Workiva/dart_dev/branches{/branch}","tags_url":"https://api.github.com/repos/Workiva/dart_dev/tags","blobs_url":"https://api.github.com/repos/Workiva/dart_dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Workiva/dart_dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Workiva/dart_dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/Workiva/dart_dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Workiva/dart_dev/statuses/{sha}","languages_url":"https://api.github.com/repos/Workiva/dart_dev/languages","stargazers_url":"https://api.github.com/repos/Workiva/dart_dev/stargazers","contributors_url":"https://api.github.com/repos/Workiva/dart_dev/contributors","subscribers_url":"https://api.github.com/repos/Workiva/dart_dev/subscribers","subscription_url":"https://api.github.com/repos/Workiva/dart_dev/subscription","commits_url":"https://api.github.com/repos/Workiva/dart_dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/Workiva/dart_dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/Workiva/dart_dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/Workiva/dart_dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/Workiva/dart_dev/contents/{+path}","compare_url":"https://api.github.com/repos/Workiva/dart_dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Workiva/dart_dev/merges","archive_url":"https://api.github.com/repos/Workiva/dart_dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Workiva/dart_dev/downloads","issues_url":"https://api.github.com/repos/Workiva/dart_dev/issues{/number}","pulls_url":"https://api.github.com/repos/Workiva/dart_dev/pulls{/number}","milestones_url":"https://api.github.com/repos/Workiva/dart_dev/milestones{/number}","notifications_url":"https://api.github.com/repos/Workiva/dart_dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Workiva/dart_dev/labels{/name}","releases_url":"https://api.github.com/repos/Workiva/dart_dev/releases{/id}","deployments_url":"https://api.github.com/repos/Workiva/dart_dev/deployments","created_at":"2015-06-23T18:56:12Z","updated_at":"2017-01-09T18:50:49Z","pushed_at":"2017-01-12T22:56:14Z","git_url":"git://github.com/Workiva/dart_dev.git","ssh_url":"git@github.com:Workiva/dart_dev.git","clone_url":"https://github.com/Workiva/dart_dev.git","svn_url":"https://github.com/Workiva/dart_dev","homepage":"https://pub.dartlang.org/packages/dart_dev","size":28635,"stargazers_count":35,"watchers_count":35,"language":"Dart","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":60,"forks":20,"open_issues":60,"watchers":35,"default_branch":"master"}},"base":{"label":"Workiva:master","ref":"master","sha":"6de67f629604032335aff338269030eeff0711a1","user":{"login":"Workiva","id":1087529,"avatar_url":"https://avatars.githubusercontent.com/u/1087529?v=3","gravatar_id":"","url":"https://api.github.com/users/Workiva","html_url":"https://github.com/Workiva","followers_url":"https://api.github.com/users/Workiva/followers","following_url":"https://api.github.com/users/Workiva/following{/other_user}","gists_url":"https://api.github.com/users/Workiva/gists{/gist_id}","starred_url":"https://api.github.com/users/Workiva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Workiva/subscriptions","organizations_url":"https://api.github.com/users/Workiva/orgs","repos_url":"https://api.github.com/users/Workiva/repos","events_url":"https://api.github.com/users/Workiva/events{/privacy}","received_events_url":"https://api.github.com/users/Workiva/received_events","type":"Organization","site_admin":false},"repo":{"id":37938617,"name":"dart_dev","full_name":"Workiva/dart_dev","owner":{"login":"Workiva","id":1087529,"avatar_url":"https://avatars.githubusercontent.com/u/1087529?v=3","gravatar_id":"","url":"https://api.github.com/users/Workiva","html_url":"https://github.com/Workiva","followers_url":"https://api.github.com/users/Workiva/followers","following_url":"https://api.github.com/users/Workiva/following{/other_user}","gists_url":"https://api.github.com/users/Workiva/gists{/gist_id}","starred_url":"https://api.github.com/users/Workiva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Workiva/subscriptions","organizations_url":"https://api.github.com/users/Workiva/orgs","repos_url":"https://api.github.com/users/Workiva/repos","events_url":"https://api.github.com/users/Workiva/events{/privacy}","received_events_url":"https://api.github.com/users/Workiva/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Workiva/dart_dev","description":"Centralized tooling for Dart projects. Consistent interface across projects. Easily configurable. ","fork":false,"url":"https://api.github.com/repos/Workiva/dart_dev","forks_url":"https://api.github.com/repos/Workiva/dart_dev/forks","keys_url":"https://api.github.com/repos/Workiva/dart_dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Workiva/dart_dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Workiva/dart_dev/teams","hooks_url":"https://api.github.com/repos/Workiva/dart_dev/hooks","issue_events_url":"https://api.github.com/repos/Workiva/dart_dev/issues/events{/number}","events_url":"https://api.github.com/repos/Workiva/dart_dev/events","assignees_url":"https://api.github.com/repos/Workiva/dart_dev/assignees{/user}","branches_url":"https://api.github.com/repos/Workiva/dart_dev/branches{/branch}","tags_url":"https://api.github.com/repos/Workiva/dart_dev/tags","blobs_url":"https://api.github.com/repos/Workiva/dart_dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Workiva/dart_dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Workiva/dart_dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/Workiva/dart_dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Workiva/dart_dev/statuses/{sha}","languages_url":"https://api.github.com/repos/Workiva/dart_dev/languages","stargazers_url":"https://api.github.com/repos/Workiva/dart_dev/stargazers","contributors_url":"https://api.github.com/repos/Workiva/dart_dev/contributors","subscribers_url":"https://api.github.com/repos/Workiva/dart_dev/subscribers","subscription_url":"https://api.github.com/repos/Workiva/dart_dev/subscription","commits_url":"https://api.github.com/repos/Workiva/dart_dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/Workiva/dart_dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/Workiva/dart_dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/Workiva/dart_dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/Workiva/dart_dev/contents/{+path}","compare_url":"https://api.github.com/repos/Workiva/dart_dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Workiva/dart_dev/merges","archive_url":"https://api.github.com/repos/Workiva/dart_dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Workiva/dart_dev/downloads","issues_url":"https://api.github.com/repos/Workiva/dart_dev/issues{/number}","pulls_url":"https://api.github.com/repos/Workiva/dart_dev/pulls{/number}","milestones_url":"https://api.github.com/repos/Workiva/dart_dev/milestones{/number}","notifications_url":"https://api.github.com/repos/Workiva/dart_dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Workiva/dart_dev/labels{/name}","releases_url":"https://api.github.com/repos/Workiva/dart_dev/releases{/id}","deployments_url":"https://api.github.com/repos/Workiva/dart_dev/deployments","created_at":"2015-06-23T18:56:12Z","updated_at":"2017-01-09T18:50:49Z","pushed_at":"2017-01-12T22:56:14Z","git_url":"git://github.com/Workiva/dart_dev.git","ssh_url":"git@github.com:Workiva/dart_dev.git","clone_url":"https://github.com/Workiva/dart_dev.git","svn_url":"https://github.com/Workiva/dart_dev","homepage":"https://pub.dartlang.org/packages/dart_dev","size":28635,"stargazers_count":35,"watchers_count":35,"language":"Dart","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":60,"forks":20,"open_issues":60,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Workiva/dart_dev/pulls/199"},"html":{"href":"https://github.com/Workiva/dart_dev/pull/199"},"issue":{"href":"https://api.github.com/repos/Workiva/dart_dev/issues/199"},"comments":{"href":"https://api.github.com/repos/Workiva/dart_dev/issues/199/comments"},"review_comments":{"href":"https://api.github.com/repos/Workiva/dart_dev/pulls/199/comments"},"review_comment":{"href":"https://api.github.com/repos/Workiva/dart_dev/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Workiva/dart_dev/pulls/199/commits"},"statuses":{"href":"https://api.github.com/repos/Workiva/dart_dev/statuses/5328588334bc56c049c4ea3fa2cbc71776b95866"}}}}
{"actor":{"display_login":"bencampbell-wf"}}