{"action":"created","comment":{"url":"https://api.github.com/repos/docker/notary/pulls/comments/33262144","id":33262144,"diff_hunk":"@@ -398,7 +451,8 @@ func verify(cmd *cobra.Command, args []string) {\n \t\tlogrus.Error(\"notary: data not present in the trusted collection.\")\n \t\tos.Exit(1)\n \t} else {\n-\t\t_, _ = os.Stdout.Write(payload)\n+\t\t_, _ = output.Write(payload)\n+\t\toutput.Close()","path":"cmd/notary/tuf.go","position":88,"original_position":88,"commit_id":"348d6e2e45cc8394ccfc4a56f3de259eb5c4929f","original_commit_id":"348d6e2e45cc8394ccfc4a56f3de259eb5c4929f","user":{"login":"progrium","id":647,"avatar_url":"https://avatars.githubusercontent.com/u/647?v=3","gravatar_id":"","url":"https://api.github.com/users/progrium","html_url":"https://github.com/progrium","followers_url":"https://api.github.com/users/progrium/followers","following_url":"https://api.github.com/users/progrium/following{/other_user}","gists_url":"https://api.github.com/users/progrium/gists{/gist_id}","starred_url":"https://api.github.com/users/progrium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/progrium/subscriptions","organizations_url":"https://api.github.com/users/progrium/orgs","repos_url":"https://api.github.com/users/progrium/repos","events_url":"https://api.github.com/users/progrium/events{/privacy}","received_events_url":"https://api.github.com/users/progrium/received_events","type":"User","site_admin":false},"body":"fair enough. ","created_at":"2015-06-25T14:43:27Z","updated_at":"2015-06-25T14:43:27Z","html_url":"https://github.com/docker/notary/pull/21#discussion_r33262144","pull_request_url":"https://api.github.com/repos/docker/notary/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/docker/notary/pulls/comments/33262144"},"html":{"href":"https://github.com/docker/notary/pull/21#discussion_r33262144"},"pull_request":{"href":"https://api.github.com/repos/docker/notary/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/docker/notary/pulls/21","id":38469506,"html_url":"https://github.com/docker/notary/pull/21","diff_url":"https://github.com/docker/notary/pull/21.diff","patch_url":"https://github.com/docker/notary/pull/21.patch","issue_url":"https://api.github.com/repos/docker/notary/issues/21","number":21,"state":"open","locked":false,"title":"adding exec command that pipes into shell directly","user":{"login":"progrium","id":647,"avatar_url":"https://avatars.githubusercontent.com/u/647?v=3","gravatar_id":"","url":"https://api.github.com/users/progrium","html_url":"https://github.com/progrium","followers_url":"https://api.github.com/users/progrium/followers","following_url":"https://api.github.com/users/progrium/following{/other_user}","gists_url":"https://api.github.com/users/progrium/gists{/gist_id}","starred_url":"https://api.github.com/users/progrium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/progrium/subscriptions","organizations_url":"https://api.github.com/users/progrium/orgs","repos_url":"https://api.github.com/users/progrium/repos","events_url":"https://api.github.com/users/progrium/events{/privacy}","received_events_url":"https://api.github.com/users/progrium/received_events","type":"User","site_admin":false},"body":"Allows you to stop doing this:\r\n```\r\ncurl example.com/install.sh | notary verify example.com/install v1 | sh\r\n```\r\nAnd start doing this:\r\n```\r\ncurl example.com/install.sh | notary exec example.com/install v1\r\n```\r\n\r\nSigned-off-by: Jeff Lindsay <progrium@gmail.com>","created_at":"2015-06-24T18:00:32Z","updated_at":"2015-06-25T14:43:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cfba95865725f7eb3c573956ee8051624a30fffd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/docker/notary/pulls/21/commits","review_comments_url":"https://api.github.com/repos/docker/notary/pulls/21/comments","review_comment_url":"https://api.github.com/repos/docker/notary/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/notary/issues/21/comments","statuses_url":"https://api.github.com/repos/docker/notary/statuses/348d6e2e45cc8394ccfc4a56f3de259eb5c4929f","head":{"label":"progrium:master","ref":"master","sha":"348d6e2e45cc8394ccfc4a56f3de259eb5c4929f","user":{"login":"progrium","id":647,"avatar_url":"https://avatars.githubusercontent.com/u/647?v=3","gravatar_id":"","url":"https://api.github.com/users/progrium","html_url":"https://github.com/progrium","followers_url":"https://api.github.com/users/progrium/followers","following_url":"https://api.github.com/users/progrium/following{/other_user}","gists_url":"https://api.github.com/users/progrium/gists{/gist_id}","starred_url":"https://api.github.com/users/progrium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/progrium/subscriptions","organizations_url":"https://api.github.com/users/progrium/orgs","repos_url":"https://api.github.com/users/progrium/repos","events_url":"https://api.github.com/users/progrium/events{/privacy}","received_events_url":"https://api.github.com/users/progrium/received_events","type":"User","site_admin":false},"repo":{"id":38000221,"name":"notary","full_name":"progrium/notary","owner":{"login":"progrium","id":647,"avatar_url":"https://avatars.githubusercontent.com/u/647?v=3","gravatar_id":"","url":"https://api.github.com/users/progrium","html_url":"https://github.com/progrium","followers_url":"https://api.github.com/users/progrium/followers","following_url":"https://api.github.com/users/progrium/following{/other_user}","gists_url":"https://api.github.com/users/progrium/gists{/gist_id}","starred_url":"https://api.github.com/users/progrium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/progrium/subscriptions","organizations_url":"https://api.github.com/users/progrium/orgs","repos_url":"https://api.github.com/users/progrium/repos","events_url":"https://api.github.com/users/progrium/events{/privacy}","received_events_url":"https://api.github.com/users/progrium/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/progrium/notary","description":"","fork":true,"url":"https://api.github.com/repos/progrium/notary","forks_url":"https://api.github.com/repos/progrium/notary/forks","keys_url":"https://api.github.com/repos/progrium/notary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/progrium/notary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/progrium/notary/teams","hooks_url":"https://api.github.com/repos/progrium/notary/hooks","issue_events_url":"https://api.github.com/repos/progrium/notary/issues/events{/number}","events_url":"https://api.github.com/repos/progrium/notary/events","assignees_url":"https://api.github.com/repos/progrium/notary/assignees{/user}","branches_url":"https://api.github.com/repos/progrium/notary/branches{/branch}","tags_url":"https://api.github.com/repos/progrium/notary/tags","blobs_url":"https://api.github.com/repos/progrium/notary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/progrium/notary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/progrium/notary/git/refs{/sha}","trees_url":"https://api.github.com/repos/progrium/notary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/progrium/notary/statuses/{sha}","languages_url":"https://api.github.com/repos/progrium/notary/languages","stargazers_url":"https://api.github.com/repos/progrium/notary/stargazers","contributors_url":"https://api.github.com/repos/progrium/notary/contributors","subscribers_url":"https://api.github.com/repos/progrium/notary/subscribers","subscription_url":"https://api.github.com/repos/progrium/notary/subscription","commits_url":"https://api.github.com/repos/progrium/notary/commits{/sha}","git_commits_url":"https://api.github.com/repos/progrium/notary/git/commits{/sha}","comments_url":"https://api.github.com/repos/progrium/notary/comments{/number}","issue_comment_url":"https://api.github.com/repos/progrium/notary/issues/comments{/number}","contents_url":"https://api.github.com/repos/progrium/notary/contents/{+path}","compare_url":"https://api.github.com/repos/progrium/notary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/progrium/notary/merges","archive_url":"https://api.github.com/repos/progrium/notary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/progrium/notary/downloads","issues_url":"https://api.github.com/repos/progrium/notary/issues{/number}","pulls_url":"https://api.github.com/repos/progrium/notary/pulls{/number}","milestones_url":"https://api.github.com/repos/progrium/notary/milestones{/number}","notifications_url":"https://api.github.com/repos/progrium/notary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/progrium/notary/labels{/name}","releases_url":"https://api.github.com/repos/progrium/notary/releases{/id}","created_at":"2015-06-24T17:36:09Z","updated_at":"2015-06-25T03:18:25Z","pushed_at":"2015-06-24T17:58:58Z","git_url":"git://github.com/progrium/notary.git","ssh_url":"git@github.com:progrium/notary.git","clone_url":"https://github.com/progrium/notary.git","svn_url":"https://github.com/progrium/notary","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"docker:master","ref":"master","sha":"908378c5cac4ccf52e9fd8430e52643c40492c43","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":37743436,"name":"notary","full_name":"docker/notary","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/notary","description":"","fork":false,"url":"https://api.github.com/repos/docker/notary","forks_url":"https://api.github.com/repos/docker/notary/forks","keys_url":"https://api.github.com/repos/docker/notary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/notary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/notary/teams","hooks_url":"https://api.github.com/repos/docker/notary/hooks","issue_events_url":"https://api.github.com/repos/docker/notary/issues/events{/number}","events_url":"https://api.github.com/repos/docker/notary/events","assignees_url":"https://api.github.com/repos/docker/notary/assignees{/user}","branches_url":"https://api.github.com/repos/docker/notary/branches{/branch}","tags_url":"https://api.github.com/repos/docker/notary/tags","blobs_url":"https://api.github.com/repos/docker/notary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/notary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/notary/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/notary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/notary/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/notary/languages","stargazers_url":"https://api.github.com/repos/docker/notary/stargazers","contributors_url":"https://api.github.com/repos/docker/notary/contributors","subscribers_url":"https://api.github.com/repos/docker/notary/subscribers","subscription_url":"https://api.github.com/repos/docker/notary/subscription","commits_url":"https://api.github.com/repos/docker/notary/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/notary/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/notary/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/notary/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/notary/contents/{+path}","compare_url":"https://api.github.com/repos/docker/notary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/notary/merges","archive_url":"https://api.github.com/repos/docker/notary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/notary/downloads","issues_url":"https://api.github.com/repos/docker/notary/issues{/number}","pulls_url":"https://api.github.com/repos/docker/notary/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/notary/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/notary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/notary/labels{/name}","releases_url":"https://api.github.com/repos/docker/notary/releases{/id}","created_at":"2015-06-19T20:07:53Z","updated_at":"2015-06-25T13:30:36Z","pushed_at":"2015-06-24T18:00:32Z","git_url":"git://github.com/docker/notary.git","ssh_url":"git@github.com:docker/notary.git","clone_url":"https://github.com/docker/notary.git","svn_url":"https://github.com/docker/notary","homepage":null,"size":0,"stargazers_count":228,"watchers_count":228,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":12,"forks":11,"open_issues":12,"watchers":228,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/notary/pulls/21"},"html":{"href":"https://github.com/docker/notary/pull/21"},"issue":{"href":"https://api.github.com/repos/docker/notary/issues/21"},"comments":{"href":"https://api.github.com/repos/docker/notary/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/notary/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/notary/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/notary/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/docker/notary/statuses/348d6e2e45cc8394ccfc4a56f3de259eb5c4929f"}}}}