{"action":"created","issue":{"url":"https://api.github.com/repos/soimort/you-get/issues/1178","repository_url":"https://api.github.com/repos/soimort/you-get","labels_url":"https://api.github.com/repos/soimort/you-get/issues/1178/labels{/name}","comments_url":"https://api.github.com/repos/soimort/you-get/issues/1178/comments","events_url":"https://api.github.com/repos/soimort/you-get/issues/1178/events","html_url":"https://github.com/soimort/you-get/issues/1178","id":157359468,"number":1178,"title":"Contributing Zsh completion definition","user":{"login":"zmwangx","id":4149852,"avatar_url":"https://avatars.githubusercontent.com/u/4149852?v=3","gravatar_id":"","url":"https://api.github.com/users/zmwangx","html_url":"https://github.com/zmwangx","followers_url":"https://api.github.com/users/zmwangx/followers","following_url":"https://api.github.com/users/zmwangx/following{/other_user}","gists_url":"https://api.github.com/users/zmwangx/gists{/gist_id}","starred_url":"https://api.github.com/users/zmwangx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zmwangx/subscriptions","organizations_url":"https://api.github.com/users/zmwangx/orgs","repos_url":"https://api.github.com/users/zmwangx/repos","events_url":"https://api.github.com/users/zmwangx/events{/privacy}","received_events_url":"https://api.github.com/users/zmwangx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-28T22:24:51Z","updated_at":"2016-05-28T23:14:43Z","closed_at":null,"body":"I would like to contribute a Zsh completion definition script for `you-get`:\r\n\r\n```zsh\r\n#compdef you-get\r\n\r\nsetopt localoptions noshwordsplit noksharrays\r\nlocal -a args\r\n\r\nargs=(\r\n    '(- : *)'{-V,--version}'[print version and exit]'\r\n    '(- : *)'{-h,--help}'[print help and exit]'\r\n    '(-i --info)'{-i,--info}'[print extracted information]'\r\n    '(-u --url)'{-u,--url}'[print extracted information with URLs]'\r\n    '(--json)--json[print extracted URLs in JSON format]'\r\n    '(-n --no-merge)'{-n,--no-merge}'[do not merge video parts]'\r\n    '(--no-caption)--no-caption[do not download captions]'\r\n    '(-f --force)'{-f,--force}'[force overwrite existing files]'\r\n    '(-F --format)'{-F,--format}'[set video format to the specified stream id]:stream id'\r\n    '(-O --output-filename)'{-O,--output-filename}'[set output filename]:filename:_files'\r\n    '(-o --output-dir)'{-o,--output-dir}'[set output directory]:directory:_files -/'\r\n    '(-p --player)'{-p,--player}'[stream extracted URL to the specified player]:player and options'\r\n    '(-c --cookies)'{-c,--cookies}'[load cookies.txt or cookies.sqlite]:cookies file:_files'\r\n    '(-x --http-proxy)'{-x,--http-proxy}'[use the specified HTTP proxy for downloading]:host\\:port:'\r\n    '(-y --extractor-proxy)'{-y,--extractor-proxy}'[use the specified HTTP proxy for extraction only]:host\\:port'\r\n    '(--no-proxy)--no-proxy[do not use a proxy]'\r\n    '(-t --timeout)'{-t,--timeout}'[set socket timeout]:seconds'\r\n    '(-d --debug)'{-d,--debug}'[show traceback and other debug info]'\r\n    '*: :_guard \"^-*\" url'\r\n)\r\n_arguments -S -s $args\r\n```\r\n\r\nIt could be put in `contrib/completion/_you-get` or something like that. I need to make sure this is welcome and figure out the desired path before being able to make a PR."},"comment":{"url":"https://api.github.com/repos/soimort/you-get/issues/comments/222334019","html_url":"https://github.com/soimort/you-get/issues/1178#issuecomment-222334019","issue_url":"https://api.github.com/repos/soimort/you-get/issues/1178","id":222334019,"user":{"login":"cnbeining","id":1560962,"avatar_url":"https://avatars.githubusercontent.com/u/1560962?v=3","gravatar_id":"","url":"https://api.github.com/users/cnbeining","html_url":"https://github.com/cnbeining","followers_url":"https://api.github.com/users/cnbeining/followers","following_url":"https://api.github.com/users/cnbeining/following{/other_user}","gists_url":"https://api.github.com/users/cnbeining/gists{/gist_id}","starred_url":"https://api.github.com/users/cnbeining/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnbeining/subscriptions","organizations_url":"https://api.github.com/users/cnbeining/orgs","repos_url":"https://api.github.com/users/cnbeining/repos","events_url":"https://api.github.com/users/cnbeining/events{/privacy}","received_events_url":"https://api.github.com/users/cnbeining/received_events","type":"User","site_admin":false},"created_at":"2016-05-28T23:14:43Z","updated_at":"2016-05-28T23:14:43Z","body":"Nice PR.\n\nI am thinking it would be easier later if we use some automatic script to\ngenerate this file...just thinking.\n\n2016年5月28日星期六，Mort Yao <notifications@github.com> 写道：\n\n> This is surely welcome *on my side*.\n>\n> I don't have a clear idea on their convention of desired paths (and I\n> don't use completions a whole lot); choose whatever you think is proper.\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/soimort/you-get/issues/1178#issuecomment-222333938>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe/ABfRglleQSa-NtzWzz8pUwjJlBazeEG7ks5qGMu3gaJpZM4IpK2S>\n> .\n>\n"}}
{"actor":{"display_login":"cnbeining"}}