{"action":"opened","number":41,"pull_request":{"url":"https://api.github.com/repos/Carthage/Commandant/pulls/41","id":53431049,"html_url":"https://github.com/Carthage/Commandant/pull/41","diff_url":"https://github.com/Carthage/Commandant/pull/41.diff","patch_url":"https://github.com/Carthage/Commandant/pull/41.patch","issue_url":"https://api.github.com/repos/Carthage/Commandant/issues/41","number":41,"state":"open","locked":false,"title":"Give Commands Options","user":{"login":"mdiep","id":1302,"avatar_url":"https://avatars.githubusercontent.com/u/1302?v=3","gravatar_id":"","url":"https://api.github.com/users/mdiep","html_url":"https://github.com/mdiep","followers_url":"https://api.github.com/users/mdiep/followers","following_url":"https://api.github.com/users/mdiep/following{/other_user}","gists_url":"https://api.github.com/users/mdiep/gists{/gist_id}","starred_url":"https://api.github.com/users/mdiep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdiep/subscriptions","organizations_url":"https://api.github.com/users/mdiep/orgs","repos_url":"https://api.github.com/users/mdiep/repos","events_url":"https://api.github.com/users/mdiep/events{/privacy}","received_events_url":"https://api.github.com/users/mdiep/received_events","type":"User","site_admin":true},"body":"This introduces some breaking changes to try to simplify the interaction of `CommandType` and `OptionsType`:\r\n\r\n- Add a `typealias Options: OptionsType` to `CommandType`\r\n- Make `ClientError`s conform to `ErrorType`\r\n- Parse options from `OptionsType`s automatically\r\n- Change `CommandType.run()` to take `Options` instead of `CommandMode`\r\n- Don't make `AnyCommand` conform to `CommandType`\r\n- Add `AnyCommand.usage()`\r\n\r\nThis would greatly simplify something like #40 because options are no longer parsed by commands. It also removes a decent amount of boilerplate from commands.","created_at":"2015-12-11T19:05:00Z","updated_at":"2015-12-11T19:05:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Carthage/Commandant/pulls/41/commits","review_comments_url":"https://api.github.com/repos/Carthage/Commandant/pulls/41/comments","review_comment_url":"https://api.github.com/repos/Carthage/Commandant/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Carthage/Commandant/issues/41/comments","statuses_url":"https://api.github.com/repos/Carthage/Commandant/statuses/78d885ba5a0ff53ac94c83f62fc9b4849d0aa07e","head":{"label":"Carthage:give-commands-options","ref":"give-commands-options","sha":"78d885ba5a0ff53ac94c83f62fc9b4849d0aa07e","user":{"login":"Carthage","id":9146792,"avatar_url":"https://avatars.githubusercontent.com/u/9146792?v=3","gravatar_id":"","url":"https://api.github.com/users/Carthage","html_url":"https://github.com/Carthage","followers_url":"https://api.github.com/users/Carthage/followers","following_url":"https://api.github.com/users/Carthage/following{/other_user}","gists_url":"https://api.github.com/users/Carthage/gists{/gist_id}","starred_url":"https://api.github.com/users/Carthage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Carthage/subscriptions","organizations_url":"https://api.github.com/users/Carthage/orgs","repos_url":"https://api.github.com/users/Carthage/repos","events_url":"https://api.github.com/users/Carthage/events{/privacy}","received_events_url":"https://api.github.com/users/Carthage/received_events","type":"Organization","site_admin":false},"repo":{"id":26991944,"name":"Commandant","full_name":"Carthage/Commandant","owner":{"login":"Carthage","id":9146792,"avatar_url":"https://avatars.githubusercontent.com/u/9146792?v=3","gravatar_id":"","url":"https://api.github.com/users/Carthage","html_url":"https://github.com/Carthage","followers_url":"https://api.github.com/users/Carthage/followers","following_url":"https://api.github.com/users/Carthage/following{/other_user}","gists_url":"https://api.github.com/users/Carthage/gists{/gist_id}","starred_url":"https://api.github.com/users/Carthage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Carthage/subscriptions","organizations_url":"https://api.github.com/users/Carthage/orgs","repos_url":"https://api.github.com/users/Carthage/repos","events_url":"https://api.github.com/users/Carthage/events{/privacy}","received_events_url":"https://api.github.com/users/Carthage/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Carthage/Commandant","description":"Type-safe command line argument handling","fork":false,"url":"https://api.github.com/repos/Carthage/Commandant","forks_url":"https://api.github.com/repos/Carthage/Commandant/forks","keys_url":"https://api.github.com/repos/Carthage/Commandant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Carthage/Commandant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Carthage/Commandant/teams","hooks_url":"https://api.github.com/repos/Carthage/Commandant/hooks","issue_events_url":"https://api.github.com/repos/Carthage/Commandant/issues/events{/number}","events_url":"https://api.github.com/repos/Carthage/Commandant/events","assignees_url":"https://api.github.com/repos/Carthage/Commandant/assignees{/user}","branches_url":"https://api.github.com/repos/Carthage/Commandant/branches{/branch}","tags_url":"https://api.github.com/repos/Carthage/Commandant/tags","blobs_url":"https://api.github.com/repos/Carthage/Commandant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Carthage/Commandant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Carthage/Commandant/git/refs{/sha}","trees_url":"https://api.github.com/repos/Carthage/Commandant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Carthage/Commandant/statuses/{sha}","languages_url":"https://api.github.com/repos/Carthage/Commandant/languages","stargazers_url":"https://api.github.com/repos/Carthage/Commandant/stargazers","contributors_url":"https://api.github.com/repos/Carthage/Commandant/contributors","subscribers_url":"https://api.github.com/repos/Carthage/Commandant/subscribers","subscription_url":"https://api.github.com/repos/Carthage/Commandant/subscription","commits_url":"https://api.github.com/repos/Carthage/Commandant/commits{/sha}","git_commits_url":"https://api.github.com/repos/Carthage/Commandant/git/commits{/sha}","comments_url":"https://api.github.com/repos/Carthage/Commandant/comments{/number}","issue_comment_url":"https://api.github.com/repos/Carthage/Commandant/issues/comments{/number}","contents_url":"https://api.github.com/repos/Carthage/Commandant/contents/{+path}","compare_url":"https://api.github.com/repos/Carthage/Commandant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Carthage/Commandant/merges","archive_url":"https://api.github.com/repos/Carthage/Commandant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Carthage/Commandant/downloads","issues_url":"https://api.github.com/repos/Carthage/Commandant/issues{/number}","pulls_url":"https://api.github.com/repos/Carthage/Commandant/pulls{/number}","milestones_url":"https://api.github.com/repos/Carthage/Commandant/milestones{/number}","notifications_url":"https://api.github.com/repos/Carthage/Commandant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Carthage/Commandant/labels{/name}","releases_url":"https://api.github.com/repos/Carthage/Commandant/releases{/id}","created_at":"2014-11-22T07:19:49Z","updated_at":"2015-12-06T08:52:03Z","pushed_at":"2015-12-11T19:01:36Z","git_url":"git://github.com/Carthage/Commandant.git","ssh_url":"git@github.com:Carthage/Commandant.git","clone_url":"https://github.com/Carthage/Commandant.git","svn_url":"https://github.com/Carthage/Commandant","homepage":null,"size":117,"stargazers_count":169,"watchers_count":169,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":5,"forks":12,"open_issues":5,"watchers":169,"default_branch":"master"}},"base":{"label":"Carthage:master","ref":"master","sha":"c2c570cea7275c41ca50dad5fc75f6a410f1e2b6","user":{"login":"Carthage","id":9146792,"avatar_url":"https://avatars.githubusercontent.com/u/9146792?v=3","gravatar_id":"","url":"https://api.github.com/users/Carthage","html_url":"https://github.com/Carthage","followers_url":"https://api.github.com/users/Carthage/followers","following_url":"https://api.github.com/users/Carthage/following{/other_user}","gists_url":"https://api.github.com/users/Carthage/gists{/gist_id}","starred_url":"https://api.github.com/users/Carthage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Carthage/subscriptions","organizations_url":"https://api.github.com/users/Carthage/orgs","repos_url":"https://api.github.com/users/Carthage/repos","events_url":"https://api.github.com/users/Carthage/events{/privacy}","received_events_url":"https://api.github.com/users/Carthage/received_events","type":"Organization","site_admin":false},"repo":{"id":26991944,"name":"Commandant","full_name":"Carthage/Commandant","owner":{"login":"Carthage","id":9146792,"avatar_url":"https://avatars.githubusercontent.com/u/9146792?v=3","gravatar_id":"","url":"https://api.github.com/users/Carthage","html_url":"https://github.com/Carthage","followers_url":"https://api.github.com/users/Carthage/followers","following_url":"https://api.github.com/users/Carthage/following{/other_user}","gists_url":"https://api.github.com/users/Carthage/gists{/gist_id}","starred_url":"https://api.github.com/users/Carthage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Carthage/subscriptions","organizations_url":"https://api.github.com/users/Carthage/orgs","repos_url":"https://api.github.com/users/Carthage/repos","events_url":"https://api.github.com/users/Carthage/events{/privacy}","received_events_url":"https://api.github.com/users/Carthage/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Carthage/Commandant","description":"Type-safe command line argument handling","fork":false,"url":"https://api.github.com/repos/Carthage/Commandant","forks_url":"https://api.github.com/repos/Carthage/Commandant/forks","keys_url":"https://api.github.com/repos/Carthage/Commandant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Carthage/Commandant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Carthage/Commandant/teams","hooks_url":"https://api.github.com/repos/Carthage/Commandant/hooks","issue_events_url":"https://api.github.com/repos/Carthage/Commandant/issues/events{/number}","events_url":"https://api.github.com/repos/Carthage/Commandant/events","assignees_url":"https://api.github.com/repos/Carthage/Commandant/assignees{/user}","branches_url":"https://api.github.com/repos/Carthage/Commandant/branches{/branch}","tags_url":"https://api.github.com/repos/Carthage/Commandant/tags","blobs_url":"https://api.github.com/repos/Carthage/Commandant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Carthage/Commandant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Carthage/Commandant/git/refs{/sha}","trees_url":"https://api.github.com/repos/Carthage/Commandant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Carthage/Commandant/statuses/{sha}","languages_url":"https://api.github.com/repos/Carthage/Commandant/languages","stargazers_url":"https://api.github.com/repos/Carthage/Commandant/stargazers","contributors_url":"https://api.github.com/repos/Carthage/Commandant/contributors","subscribers_url":"https://api.github.com/repos/Carthage/Commandant/subscribers","subscription_url":"https://api.github.com/repos/Carthage/Commandant/subscription","commits_url":"https://api.github.com/repos/Carthage/Commandant/commits{/sha}","git_commits_url":"https://api.github.com/repos/Carthage/Commandant/git/commits{/sha}","comments_url":"https://api.github.com/repos/Carthage/Commandant/comments{/number}","issue_comment_url":"https://api.github.com/repos/Carthage/Commandant/issues/comments{/number}","contents_url":"https://api.github.com/repos/Carthage/Commandant/contents/{+path}","compare_url":"https://api.github.com/repos/Carthage/Commandant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Carthage/Commandant/merges","archive_url":"https://api.github.com/repos/Carthage/Commandant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Carthage/Commandant/downloads","issues_url":"https://api.github.com/repos/Carthage/Commandant/issues{/number}","pulls_url":"https://api.github.com/repos/Carthage/Commandant/pulls{/number}","milestones_url":"https://api.github.com/repos/Carthage/Commandant/milestones{/number}","notifications_url":"https://api.github.com/repos/Carthage/Commandant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Carthage/Commandant/labels{/name}","releases_url":"https://api.github.com/repos/Carthage/Commandant/releases{/id}","created_at":"2014-11-22T07:19:49Z","updated_at":"2015-12-06T08:52:03Z","pushed_at":"2015-12-11T19:01:36Z","git_url":"git://github.com/Carthage/Commandant.git","ssh_url":"git@github.com:Carthage/Commandant.git","clone_url":"https://github.com/Carthage/Commandant.git","svn_url":"https://github.com/Carthage/Commandant","homepage":null,"size":117,"stargazers_count":169,"watchers_count":169,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":5,"forks":12,"open_issues":5,"watchers":169,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Carthage/Commandant/pulls/41"},"html":{"href":"https://github.com/Carthage/Commandant/pull/41"},"issue":{"href":"https://api.github.com/repos/Carthage/Commandant/issues/41"},"comments":{"href":"https://api.github.com/repos/Carthage/Commandant/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/Carthage/Commandant/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/Carthage/Commandant/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Carthage/Commandant/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/Carthage/Commandant/statuses/78d885ba5a0ff53ac94c83f62fc9b4849d0aa07e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":5,"additions":67,"deletions":44,"changed_files":5}}