{"action":"created","issue":{"url":"https://api.github.com/repos/google/grinder.dart/issues/263","labels_url":"https://api.github.com/repos/google/grinder.dart/issues/263/labels{/name}","comments_url":"https://api.github.com/repos/google/grinder.dart/issues/263/comments","events_url":"https://api.github.com/repos/google/grinder.dart/issues/263/events","html_url":"https://github.com/google/grinder.dart/issues/263","id":84537426,"number":263,"title":"Document reusable task defs via `export`","user":{"login":"zoechi","id":405837,"avatar_url":"https://avatars.githubusercontent.com/u/405837?v=3","gravatar_id":"","url":"https://api.github.com/users/zoechi","html_url":"https://github.com/zoechi","followers_url":"https://api.github.com/users/zoechi/followers","following_url":"https://api.github.com/users/zoechi/following{/other_user}","gists_url":"https://api.github.com/users/zoechi/gists{/gist_id}","starred_url":"https://api.github.com/users/zoechi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoechi/subscriptions","organizations_url":"https://api.github.com/users/zoechi/orgs","repos_url":"https://api.github.com/users/zoechi/repos","events_url":"https://api.github.com/users/zoechi/events{/privacy}","received_events_url":"https://api.github.com/users/zoechi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-03T12:33:45Z","updated_at":"2015-06-03T14:35:39Z","closed_at":null,"body":"I have a bunch of tasks I want to reuse in every package.\r\nIt seems I have to declare tasks in the main library though.\r\n\r\nCurrently I have a shared package which contains a library with task definitions like\r\n```Dart\r\nconst analyzeDesc = const Task('Run analyzer');\r\nanalyzeTask() { ...}\r\n```\r\n\r\nwhich I can use like \r\n```Dart\r\nimport 'package:bwu_utils_dev/grinder/default_tasks.dart';\r\nmain(List<String> args) => grind(args);\r\n@analyzeDesc analyze() => analyzeTask();\r\n```\r\n\r\nI would prefer just \r\n```Dart\r\nimport 'package:bwu_utils_dev/grinder/default_tasks.dart' show main, analyze, test, ...;\r\n// specify custom tasks here\r\n```\r\n\r\nI could probably just move `main()` to `package:bwu_utils_dev/grinder/default_tasks.dart` and export it but this makes it difficult to overwrite specific tasks where I don't want to use the default task.\r\n\r\nDid I miss something? Other ideas?"},"comment":{"url":"https://api.github.com/repos/google/grinder.dart/issues/comments/108458531","html_url":"https://github.com/google/grinder.dart/issues/263#issuecomment-108458531","issue_url":"https://api.github.com/repos/google/grinder.dart/issues/263","id":108458531,"user":{"login":"zoechi","id":405837,"avatar_url":"https://avatars.githubusercontent.com/u/405837?v=3","gravatar_id":"","url":"https://api.github.com/users/zoechi","html_url":"https://github.com/zoechi","followers_url":"https://api.github.com/users/zoechi/followers","following_url":"https://api.github.com/users/zoechi/following{/other_user}","gists_url":"https://api.github.com/users/zoechi/gists{/gist_id}","starred_url":"https://api.github.com/users/zoechi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoechi/subscriptions","organizations_url":"https://api.github.com/users/zoechi/orgs","repos_url":"https://api.github.com/users/zoechi/repos","events_url":"https://api.github.com/users/zoechi/events{/privacy}","received_events_url":"https://api.github.com/users/zoechi/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T14:35:39Z","updated_at":"2015-06-03T14:35:39Z","body":"This is perfect :)"}}