{"action":"opened","number":7913,"pull_request":{"url":"https://api.github.com/repos/grpc/grpc/pulls/7913","id":83185817,"html_url":"https://github.com/grpc/grpc/pull/7913","diff_url":"https://github.com/grpc/grpc/pull/7913.diff","patch_url":"https://github.com/grpc/grpc/pull/7913.patch","issue_url":"https://api.github.com/repos/grpc/grpc/issues/7913","number":7913,"state":"open","locked":false,"title":"gRPC CLI parse, tobinary, totext commands","user":{"login":"y-zeng","id":17460127,"avatar_url":"https://avatars.githubusercontent.com/u/17460127?v=3","gravatar_id":"","url":"https://api.github.com/users/y-zeng","html_url":"https://github.com/y-zeng","followers_url":"https://api.github.com/users/y-zeng/followers","following_url":"https://api.github.com/users/y-zeng/following{/other_user}","gists_url":"https://api.github.com/users/y-zeng/gists{/gist_id}","starred_url":"https://api.github.com/users/y-zeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y-zeng/subscriptions","organizations_url":"https://api.github.com/users/y-zeng/orgs","repos_url":"https://api.github.com/users/y-zeng/repos","events_url":"https://api.github.com/users/y-zeng/events{/privacy}","received_events_url":"https://api.github.com/users/y-zeng/received_events","type":"User","site_admin":false},"body":"Add parse, tobinary, totext commands for gRPC CLI.\r\nParse:\r\n```\r\ngrpc_cli parse <address> <type> [<message>]\r\n    <address>                ; host:port\r\n    <type>                   ; Protocol buffer type name\r\n    <message>                ; Text protobuffer (overrides --infile)\r\n    --protofiles             ; Comma separated proto files used as a fallback when parsing request/response\r\n    --proto_path             ; The search path of proto files, valid only when --protofiles is given\r\n    --infile                 ; Input filename (defaults to stdin)\r\n    --outfile                ; Output filename (defaults to stdout)\r\n    --binary_input           ; Input in binary format\r\n    --binary_output          ; Output in binary format\r\n```\r\nTotext:\r\n```\r\nrpc_cli totext <proto_file> <type>\r\n    <proto_file>             ; Comma separated list of proto files\r\n    <type>                   ; Protocol buffer type name\r\n    --proto_path             ; The search path of proto files\r\n    --infile                 ; Input filename (defaults to stdin)\r\n    --outfile                ; Output filename (defaults to stdout)\r\n```\r\nTobinary\r\n```\r\ngrpc_cli tobinary <proto_file> <type> [<message>]\r\n    <proto_file>             ; Comma separated list of proto files\r\n    <type>                   ; Protocol buffer type name\r\n    --proto_path             ; The search path of proto files\r\n    --infile                 ; Input filename (defaults to stdin)\r\n    --outfile                ; Output filename (defaults to stdout)\r\n```","created_at":"2016-08-29T23:34:54Z","updated_at":"2016-08-29T23:34:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"yang-g","id":10122250,"avatar_url":"https://avatars.githubusercontent.com/u/10122250?v=3","gravatar_id":"","url":"https://api.github.com/users/yang-g","html_url":"https://github.com/yang-g","followers_url":"https://api.github.com/users/yang-g/followers","following_url":"https://api.github.com/users/yang-g/following{/other_user}","gists_url":"https://api.github.com/users/yang-g/gists{/gist_id}","starred_url":"https://api.github.com/users/yang-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yang-g/subscriptions","organizations_url":"https://api.github.com/users/yang-g/orgs","repos_url":"https://api.github.com/users/yang-g/repos","events_url":"https://api.github.com/users/yang-g/events{/privacy}","received_events_url":"https://api.github.com/users/yang-g/received_events","type":"User","site_admin":false},"assignees":[{"login":"yang-g","id":10122250,"avatar_url":"https://avatars.githubusercontent.com/u/10122250?v=3","gravatar_id":"","url":"https://api.github.com/users/yang-g","html_url":"https://github.com/yang-g","followers_url":"https://api.github.com/users/yang-g/followers","following_url":"https://api.github.com/users/yang-g/following{/other_user}","gists_url":"https://api.github.com/users/yang-g/gists{/gist_id}","starred_url":"https://api.github.com/users/yang-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yang-g/subscriptions","organizations_url":"https://api.github.com/users/yang-g/orgs","repos_url":"https://api.github.com/users/yang-g/repos","events_url":"https://api.github.com/users/yang-g/events{/privacy}","received_events_url":"https://api.github.com/users/yang-g/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/grpc/grpc/pulls/7913/commits","review_comments_url":"https://api.github.com/repos/grpc/grpc/pulls/7913/comments","review_comment_url":"https://api.github.com/repos/grpc/grpc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/grpc/grpc/issues/7913/comments","statuses_url":"https://api.github.com/repos/grpc/grpc/statuses/13c6763e315cd51e5a7a23f7f45d2f21eb8a4afd","head":{"label":"y-zeng:cli_parse","ref":"cli_parse","sha":"13c6763e315cd51e5a7a23f7f45d2f21eb8a4afd","user":{"login":"y-zeng","id":17460127,"avatar_url":"https://avatars.githubusercontent.com/u/17460127?v=3","gravatar_id":"","url":"https://api.github.com/users/y-zeng","html_url":"https://github.com/y-zeng","followers_url":"https://api.github.com/users/y-zeng/followers","following_url":"https://api.github.com/users/y-zeng/following{/other_user}","gists_url":"https://api.github.com/users/y-zeng/gists{/gist_id}","starred_url":"https://api.github.com/users/y-zeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y-zeng/subscriptions","organizations_url":"https://api.github.com/users/y-zeng/orgs","repos_url":"https://api.github.com/users/y-zeng/repos","events_url":"https://api.github.com/users/y-zeng/events{/privacy}","received_events_url":"https://api.github.com/users/y-zeng/received_events","type":"User","site_admin":false},"repo":{"id":52568937,"name":"grpc","full_name":"y-zeng/grpc","owner":{"login":"y-zeng","id":17460127,"avatar_url":"https://avatars.githubusercontent.com/u/17460127?v=3","gravatar_id":"","url":"https://api.github.com/users/y-zeng","html_url":"https://github.com/y-zeng","followers_url":"https://api.github.com/users/y-zeng/followers","following_url":"https://api.github.com/users/y-zeng/following{/other_user}","gists_url":"https://api.github.com/users/y-zeng/gists{/gist_id}","starred_url":"https://api.github.com/users/y-zeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y-zeng/subscriptions","organizations_url":"https://api.github.com/users/y-zeng/orgs","repos_url":"https://api.github.com/users/y-zeng/repos","events_url":"https://api.github.com/users/y-zeng/events{/privacy}","received_events_url":"https://api.github.com/users/y-zeng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/y-zeng/grpc","description":"The C based gRPC (C++, Node.js, Python, Ruby, Objective-C, PHP, C#)","fork":true,"url":"https://api.github.com/repos/y-zeng/grpc","forks_url":"https://api.github.com/repos/y-zeng/grpc/forks","keys_url":"https://api.github.com/repos/y-zeng/grpc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/y-zeng/grpc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/y-zeng/grpc/teams","hooks_url":"https://api.github.com/repos/y-zeng/grpc/hooks","issue_events_url":"https://api.github.com/repos/y-zeng/grpc/issues/events{/number}","events_url":"https://api.github.com/repos/y-zeng/grpc/events","assignees_url":"https://api.github.com/repos/y-zeng/grpc/assignees{/user}","branches_url":"https://api.github.com/repos/y-zeng/grpc/branches{/branch}","tags_url":"https://api.github.com/repos/y-zeng/grpc/tags","blobs_url":"https://api.github.com/repos/y-zeng/grpc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/y-zeng/grpc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/y-zeng/grpc/git/refs{/sha}","trees_url":"https://api.github.com/repos/y-zeng/grpc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/y-zeng/grpc/statuses/{sha}","languages_url":"https://api.github.com/repos/y-zeng/grpc/languages","stargazers_url":"https://api.github.com/repos/y-zeng/grpc/stargazers","contributors_url":"https://api.github.com/repos/y-zeng/grpc/contributors","subscribers_url":"https://api.github.com/repos/y-zeng/grpc/subscribers","subscription_url":"https://api.github.com/repos/y-zeng/grpc/subscription","commits_url":"https://api.github.com/repos/y-zeng/grpc/commits{/sha}","git_commits_url":"https://api.github.com/repos/y-zeng/grpc/git/commits{/sha}","comments_url":"https://api.github.com/repos/y-zeng/grpc/comments{/number}","issue_comment_url":"https://api.github.com/repos/y-zeng/grpc/issues/comments{/number}","contents_url":"https://api.github.com/repos/y-zeng/grpc/contents/{+path}","compare_url":"https://api.github.com/repos/y-zeng/grpc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/y-zeng/grpc/merges","archive_url":"https://api.github.com/repos/y-zeng/grpc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/y-zeng/grpc/downloads","issues_url":"https://api.github.com/repos/y-zeng/grpc/issues{/number}","pulls_url":"https://api.github.com/repos/y-zeng/grpc/pulls{/number}","milestones_url":"https://api.github.com/repos/y-zeng/grpc/milestones{/number}","notifications_url":"https://api.github.com/repos/y-zeng/grpc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/y-zeng/grpc/labels{/name}","releases_url":"https://api.github.com/repos/y-zeng/grpc/releases{/id}","deployments_url":"https://api.github.com/repos/y-zeng/grpc/deployments","created_at":"2016-02-26T01:16:00Z","updated_at":"2016-02-26T01:16:07Z","pushed_at":"2016-08-29T23:29:14Z","git_url":"git://github.com/y-zeng/grpc.git","ssh_url":"git@github.com:y-zeng/grpc.git","clone_url":"https://github.com/y-zeng/grpc.git","svn_url":"https://github.com/y-zeng/grpc","homepage":"","size":80420,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":false,"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":"grpc:master","ref":"master","sha":"8e2c98adf002e747cae01bdabb8b344008dbbe27","user":{"login":"grpc","id":7802525,"avatar_url":"https://avatars.githubusercontent.com/u/7802525?v=3","gravatar_id":"","url":"https://api.github.com/users/grpc","html_url":"https://github.com/grpc","followers_url":"https://api.github.com/users/grpc/followers","following_url":"https://api.github.com/users/grpc/following{/other_user}","gists_url":"https://api.github.com/users/grpc/gists{/gist_id}","starred_url":"https://api.github.com/users/grpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grpc/subscriptions","organizations_url":"https://api.github.com/users/grpc/orgs","repos_url":"https://api.github.com/users/grpc/repos","events_url":"https://api.github.com/users/grpc/events{/privacy}","received_events_url":"https://api.github.com/users/grpc/received_events","type":"Organization","site_admin":false},"repo":{"id":27729880,"name":"grpc","full_name":"grpc/grpc","owner":{"login":"grpc","id":7802525,"avatar_url":"https://avatars.githubusercontent.com/u/7802525?v=3","gravatar_id":"","url":"https://api.github.com/users/grpc","html_url":"https://github.com/grpc","followers_url":"https://api.github.com/users/grpc/followers","following_url":"https://api.github.com/users/grpc/following{/other_user}","gists_url":"https://api.github.com/users/grpc/gists{/gist_id}","starred_url":"https://api.github.com/users/grpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grpc/subscriptions","organizations_url":"https://api.github.com/users/grpc/orgs","repos_url":"https://api.github.com/users/grpc/repos","events_url":"https://api.github.com/users/grpc/events{/privacy}","received_events_url":"https://api.github.com/users/grpc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/grpc/grpc","description":"The C based gRPC (C++, Node.js, Python, Ruby, Objective-C, PHP, C#)","fork":false,"url":"https://api.github.com/repos/grpc/grpc","forks_url":"https://api.github.com/repos/grpc/grpc/forks","keys_url":"https://api.github.com/repos/grpc/grpc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grpc/grpc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grpc/grpc/teams","hooks_url":"https://api.github.com/repos/grpc/grpc/hooks","issue_events_url":"https://api.github.com/repos/grpc/grpc/issues/events{/number}","events_url":"https://api.github.com/repos/grpc/grpc/events","assignees_url":"https://api.github.com/repos/grpc/grpc/assignees{/user}","branches_url":"https://api.github.com/repos/grpc/grpc/branches{/branch}","tags_url":"https://api.github.com/repos/grpc/grpc/tags","blobs_url":"https://api.github.com/repos/grpc/grpc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grpc/grpc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grpc/grpc/git/refs{/sha}","trees_url":"https://api.github.com/repos/grpc/grpc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grpc/grpc/statuses/{sha}","languages_url":"https://api.github.com/repos/grpc/grpc/languages","stargazers_url":"https://api.github.com/repos/grpc/grpc/stargazers","contributors_url":"https://api.github.com/repos/grpc/grpc/contributors","subscribers_url":"https://api.github.com/repos/grpc/grpc/subscribers","subscription_url":"https://api.github.com/repos/grpc/grpc/subscription","commits_url":"https://api.github.com/repos/grpc/grpc/commits{/sha}","git_commits_url":"https://api.github.com/repos/grpc/grpc/git/commits{/sha}","comments_url":"https://api.github.com/repos/grpc/grpc/comments{/number}","issue_comment_url":"https://api.github.com/repos/grpc/grpc/issues/comments{/number}","contents_url":"https://api.github.com/repos/grpc/grpc/contents/{+path}","compare_url":"https://api.github.com/repos/grpc/grpc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grpc/grpc/merges","archive_url":"https://api.github.com/repos/grpc/grpc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grpc/grpc/downloads","issues_url":"https://api.github.com/repos/grpc/grpc/issues{/number}","pulls_url":"https://api.github.com/repos/grpc/grpc/pulls{/number}","milestones_url":"https://api.github.com/repos/grpc/grpc/milestones{/number}","notifications_url":"https://api.github.com/repos/grpc/grpc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grpc/grpc/labels{/name}","releases_url":"https://api.github.com/repos/grpc/grpc/releases{/id}","deployments_url":"https://api.github.com/repos/grpc/grpc/deployments","created_at":"2014-12-08T18:58:53Z","updated_at":"2016-08-29T22:53:45Z","pushed_at":"2016-08-29T23:34:55Z","git_url":"git://github.com/grpc/grpc.git","ssh_url":"git@github.com:grpc/grpc.git","clone_url":"https://github.com/grpc/grpc.git","svn_url":"https://github.com/grpc/grpc","homepage":"","size":206851,"stargazers_count":6555,"watchers_count":6555,"language":"C","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":1199,"mirror_url":null,"open_issues_count":765,"forks":1199,"open_issues":765,"watchers":6555,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/grpc/grpc/pulls/7913"},"html":{"href":"https://github.com/grpc/grpc/pull/7913"},"issue":{"href":"https://api.github.com/repos/grpc/grpc/issues/7913"},"comments":{"href":"https://api.github.com/repos/grpc/grpc/issues/7913/comments"},"review_comments":{"href":"https://api.github.com/repos/grpc/grpc/pulls/7913/comments"},"review_comment":{"href":"https://api.github.com/repos/grpc/grpc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/grpc/grpc/pulls/7913/commits"},"statuses":{"href":"https://api.github.com/repos/grpc/grpc/statuses/13c6763e315cd51e5a7a23f7f45d2f21eb8a4afd"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":182,"deletions":12,"changed_files":2}}
{"actor":{"display_login":"y-zeng"}}