{"action":"closed","number":773,"pull_request":{"url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/pulls/773","id":90547842,"html_url":"https://github.com/rust-lang-nursery/rustup.rs/pull/773","diff_url":"https://github.com/rust-lang-nursery/rustup.rs/pull/773.diff","patch_url":"https://github.com/rust-lang-nursery/rustup.rs/pull/773.patch","issue_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/issues/773","number":773,"state":"closed","locked":false,"title":"Completions","user":{"login":"kbknapp","id":6942134,"avatar_url":"https://avatars.githubusercontent.com/u/6942134?v=3","gravatar_id":"","url":"https://api.github.com/users/kbknapp","html_url":"https://github.com/kbknapp","followers_url":"https://api.github.com/users/kbknapp/followers","following_url":"https://api.github.com/users/kbknapp/following{/other_user}","gists_url":"https://api.github.com/users/kbknapp/gists{/gist_id}","starred_url":"https://api.github.com/users/kbknapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbknapp/subscriptions","organizations_url":"https://api.github.com/users/kbknapp/orgs","repos_url":"https://api.github.com/users/kbknapp/repos","events_url":"https://api.github.com/users/kbknapp/events{/privacy}","received_events_url":"https://api.github.com/users/kbknapp/received_events","type":"User","site_admin":false},"body":"This commit adds a command line option to generate completion scripts, as well as updates `clap` to 2.16.0 which adds ZSH completion support.\r\n\r\nHere's a gif of the new ZSH support and the new `rustup completions` subcommand backing it.\r\n\r\n![rustup_zsh](https://cloud.githubusercontent.com/assets/6942134/19633417/6f9fc3ea-997f-11e6-89ce-21a157709bde.gif)\r\n\r\nSpecifically this commit adds \r\n\r\n```\r\n$ rustup completions <shell>\r\n```\r\n\r\nFinally, this PR adds some additional help documentation on the `completions` command, and changes the `README.md` slightly to reflect the new additions.\r\n\r\nSome notes about the ZSH script generated by `clap`, it supports, subcommands, flags, args, and options. The options also automatically list their `possible_values`, and will automatically *not* list any arguments they `conflict` with. This may not be too applicable to `rustup` since I don't think many of those options are used, but it's good to note for future reference.\r\n\r\nAlso, positional arguments, such as `toolchain` in a few of the subcommands is changed to uppercase ASCII by `clap` in order to differentiate.\r\n\r\nEdit: removed verbiage about `--completions`","created_at":"2016-10-24T04:23:50Z","updated_at":"2016-10-24T15:03:29Z","closed_at":"2016-10-24T15:03:29Z","merged_at":"2016-10-24T15:03:29Z","merge_commit_sha":"ec46f9f6b7762e31245af66afe91b2fd1a895423","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/pulls/773/commits","review_comments_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/pulls/773/comments","review_comment_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/issues/773/comments","statuses_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/statuses/79dcc1e142cecb7ea45048596970ce25ff245e00","head":{"label":"kbknapp:completions","ref":"completions","sha":"79dcc1e142cecb7ea45048596970ce25ff245e00","user":{"login":"kbknapp","id":6942134,"avatar_url":"https://avatars.githubusercontent.com/u/6942134?v=3","gravatar_id":"","url":"https://api.github.com/users/kbknapp","html_url":"https://github.com/kbknapp","followers_url":"https://api.github.com/users/kbknapp/followers","following_url":"https://api.github.com/users/kbknapp/following{/other_user}","gists_url":"https://api.github.com/users/kbknapp/gists{/gist_id}","starred_url":"https://api.github.com/users/kbknapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbknapp/subscriptions","organizations_url":"https://api.github.com/users/kbknapp/orgs","repos_url":"https://api.github.com/users/kbknapp/repos","events_url":"https://api.github.com/users/kbknapp/events{/privacy}","received_events_url":"https://api.github.com/users/kbknapp/received_events","type":"User","site_admin":false},"repo":{"id":53623713,"name":"multirust-rs","full_name":"kbknapp/multirust-rs","owner":{"login":"kbknapp","id":6942134,"avatar_url":"https://avatars.githubusercontent.com/u/6942134?v=3","gravatar_id":"","url":"https://api.github.com/users/kbknapp","html_url":"https://github.com/kbknapp","followers_url":"https://api.github.com/users/kbknapp/followers","following_url":"https://api.github.com/users/kbknapp/following{/other_user}","gists_url":"https://api.github.com/users/kbknapp/gists{/gist_id}","starred_url":"https://api.github.com/users/kbknapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbknapp/subscriptions","organizations_url":"https://api.github.com/users/kbknapp/orgs","repos_url":"https://api.github.com/users/kbknapp/repos","events_url":"https://api.github.com/users/kbknapp/events{/privacy}","received_events_url":"https://api.github.com/users/kbknapp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kbknapp/multirust-rs","description":"Multirust in rust!","fork":true,"url":"https://api.github.com/repos/kbknapp/multirust-rs","forks_url":"https://api.github.com/repos/kbknapp/multirust-rs/forks","keys_url":"https://api.github.com/repos/kbknapp/multirust-rs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kbknapp/multirust-rs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kbknapp/multirust-rs/teams","hooks_url":"https://api.github.com/repos/kbknapp/multirust-rs/hooks","issue_events_url":"https://api.github.com/repos/kbknapp/multirust-rs/issues/events{/number}","events_url":"https://api.github.com/repos/kbknapp/multirust-rs/events","assignees_url":"https://api.github.com/repos/kbknapp/multirust-rs/assignees{/user}","branches_url":"https://api.github.com/repos/kbknapp/multirust-rs/branches{/branch}","tags_url":"https://api.github.com/repos/kbknapp/multirust-rs/tags","blobs_url":"https://api.github.com/repos/kbknapp/multirust-rs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kbknapp/multirust-rs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kbknapp/multirust-rs/git/refs{/sha}","trees_url":"https://api.github.com/repos/kbknapp/multirust-rs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kbknapp/multirust-rs/statuses/{sha}","languages_url":"https://api.github.com/repos/kbknapp/multirust-rs/languages","stargazers_url":"https://api.github.com/repos/kbknapp/multirust-rs/stargazers","contributors_url":"https://api.github.com/repos/kbknapp/multirust-rs/contributors","subscribers_url":"https://api.github.com/repos/kbknapp/multirust-rs/subscribers","subscription_url":"https://api.github.com/repos/kbknapp/multirust-rs/subscription","commits_url":"https://api.github.com/repos/kbknapp/multirust-rs/commits{/sha}","git_commits_url":"https://api.github.com/repos/kbknapp/multirust-rs/git/commits{/sha}","comments_url":"https://api.github.com/repos/kbknapp/multirust-rs/comments{/number}","issue_comment_url":"https://api.github.com/repos/kbknapp/multirust-rs/issues/comments{/number}","contents_url":"https://api.github.com/repos/kbknapp/multirust-rs/contents/{+path}","compare_url":"https://api.github.com/repos/kbknapp/multirust-rs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kbknapp/multirust-rs/merges","archive_url":"https://api.github.com/repos/kbknapp/multirust-rs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kbknapp/multirust-rs/downloads","issues_url":"https://api.github.com/repos/kbknapp/multirust-rs/issues{/number}","pulls_url":"https://api.github.com/repos/kbknapp/multirust-rs/pulls{/number}","milestones_url":"https://api.github.com/repos/kbknapp/multirust-rs/milestones{/number}","notifications_url":"https://api.github.com/repos/kbknapp/multirust-rs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kbknapp/multirust-rs/labels{/name}","releases_url":"https://api.github.com/repos/kbknapp/multirust-rs/releases{/id}","deployments_url":"https://api.github.com/repos/kbknapp/multirust-rs/deployments","created_at":"2016-03-10T23:07:27Z","updated_at":"2016-03-10T23:07:29Z","pushed_at":"2016-10-24T14:57:55Z","git_url":"git://github.com/kbknapp/multirust-rs.git","ssh_url":"git@github.com:kbknapp/multirust-rs.git","clone_url":"https://github.com/kbknapp/multirust-rs.git","svn_url":"https://github.com/kbknapp/multirust-rs","homepage":null,"size":8041,"stargazers_count":0,"watchers_count":0,"language":"Rust","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":"rust-lang-nursery:master","ref":"master","sha":"488b23032e60430ff905ba8c0b5c3b2577c7a769","user":{"login":"rust-lang-nursery","id":14631425,"avatar_url":"https://avatars.githubusercontent.com/u/14631425?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-lang-nursery","html_url":"https://github.com/rust-lang-nursery","followers_url":"https://api.github.com/users/rust-lang-nursery/followers","following_url":"https://api.github.com/users/rust-lang-nursery/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang-nursery/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang-nursery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang-nursery/subscriptions","organizations_url":"https://api.github.com/users/rust-lang-nursery/orgs","repos_url":"https://api.github.com/users/rust-lang-nursery/repos","events_url":"https://api.github.com/users/rust-lang-nursery/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang-nursery/received_events","type":"Organization","site_admin":false},"repo":{"id":43192623,"name":"rustup.rs","full_name":"rust-lang-nursery/rustup.rs","owner":{"login":"rust-lang-nursery","id":14631425,"avatar_url":"https://avatars.githubusercontent.com/u/14631425?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-lang-nursery","html_url":"https://github.com/rust-lang-nursery","followers_url":"https://api.github.com/users/rust-lang-nursery/followers","following_url":"https://api.github.com/users/rust-lang-nursery/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang-nursery/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang-nursery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang-nursery/subscriptions","organizations_url":"https://api.github.com/users/rust-lang-nursery/orgs","repos_url":"https://api.github.com/users/rust-lang-nursery/repos","events_url":"https://api.github.com/users/rust-lang-nursery/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang-nursery/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rust-lang-nursery/rustup.rs","description":"The Rust toolchain installer","fork":false,"url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs","forks_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/forks","keys_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/teams","hooks_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/hooks","issue_events_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/issues/events{/number}","events_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/events","assignees_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/assignees{/user}","branches_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/branches{/branch}","tags_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/tags","blobs_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/git/refs{/sha}","trees_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/statuses/{sha}","languages_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/languages","stargazers_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/stargazers","contributors_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/contributors","subscribers_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/subscribers","subscription_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/subscription","commits_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/commits{/sha}","git_commits_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/git/commits{/sha}","comments_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/comments{/number}","issue_comment_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/issues/comments{/number}","contents_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/contents/{+path}","compare_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/merges","archive_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/downloads","issues_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/issues{/number}","pulls_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/pulls{/number}","milestones_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/milestones{/number}","notifications_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/labels{/name}","releases_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/releases{/id}","deployments_url":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/deployments","created_at":"2015-09-26T04:54:49Z","updated_at":"2016-10-23T21:07:45Z","pushed_at":"2016-10-24T15:03:30Z","git_url":"git://github.com/rust-lang-nursery/rustup.rs.git","ssh_url":"git@github.com:rust-lang-nursery/rustup.rs.git","clone_url":"https://github.com/rust-lang-nursery/rustup.rs.git","svn_url":"https://github.com/rust-lang-nursery/rustup.rs","homepage":"","size":9005,"stargazers_count":729,"watchers_count":729,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":85,"mirror_url":null,"open_issues_count":198,"forks":85,"open_issues":198,"watchers":729,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/pulls/773"},"html":{"href":"https://github.com/rust-lang-nursery/rustup.rs/pull/773"},"issue":{"href":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/issues/773"},"comments":{"href":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/issues/773/comments"},"review_comments":{"href":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/pulls/773/comments"},"review_comment":{"href":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/pulls/773/commits"},"statuses":{"href":"https://api.github.com/repos/rust-lang-nursery/rustup.rs/statuses/79dcc1e142cecb7ea45048596970ce25ff245e00"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"brson","id":147214,"avatar_url":"https://avatars.githubusercontent.com/u/147214?v=3","gravatar_id":"","url":"https://api.github.com/users/brson","html_url":"https://github.com/brson","followers_url":"https://api.github.com/users/brson/followers","following_url":"https://api.github.com/users/brson/following{/other_user}","gists_url":"https://api.github.com/users/brson/gists{/gist_id}","starred_url":"https://api.github.com/users/brson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brson/subscriptions","organizations_url":"https://api.github.com/users/brson/orgs","repos_url":"https://api.github.com/users/brson/repos","events_url":"https://api.github.com/users/brson/events{/privacy}","received_events_url":"https://api.github.com/users/brson/received_events","type":"User","site_admin":false},"comments":4,"review_comments":0,"commits":3,"additions":111,"deletions":14,"changed_files":5}}
{"actor":{"display_login":"brson"}}