{"action":"created","comment":{"url":"https://api.github.com/repos/jrperritt/rack/pulls/comments/32285690","id":32285690,"diff_hunk":"@@ -2,14 +2,13 @@ package output\n \n import (\n \t\"fmt\"\n+\t\"io\"\n \t\"strings\"\n \t\"text/tabwriter\"\n-\n-\t\"github.com/codegangsta/cli\"\n )\n \n-func listTable(c *cli.Context, many []map[string]interface{}, keys []string) {\n-\tw := tabwriter.NewWriter(c.App.Writer, 0, 8, 1, '\\t', 0)\n+func listTable(writer io.Writer, many []map[string]interface{}, keys []string) {\n+\tw := tabwriter.NewWriter(writer, 0, 8, 1, '\\t', 0)","path":"output/table.go","position":14,"original_position":14,"commit_id":"b70b76b05cc69fc15ef9d521f0c5cfca03de3f8e","original_commit_id":"b70b76b05cc69fc15ef9d521f0c5cfca03de3f8e","user":{"login":"rgbkrk","id":836375,"avatar_url":"https://avatars.githubusercontent.com/u/836375?v=3","gravatar_id":"","url":"https://api.github.com/users/rgbkrk","html_url":"https://github.com/rgbkrk","followers_url":"https://api.github.com/users/rgbkrk/followers","following_url":"https://api.github.com/users/rgbkrk/following{/other_user}","gists_url":"https://api.github.com/users/rgbkrk/gists{/gist_id}","starred_url":"https://api.github.com/users/rgbkrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgbkrk/subscriptions","organizations_url":"https://api.github.com/users/rgbkrk/orgs","repos_url":"https://api.github.com/users/rgbkrk/repos","events_url":"https://api.github.com/users/rgbkrk/events{/privacy}","received_events_url":"https://api.github.com/users/rgbkrk/received_events","type":"User","site_admin":false},"body":"This makes more sense to use a writer anyways and should make unit testing easier.","created_at":"2015-06-12T01:56:12Z","updated_at":"2015-06-12T01:56:12Z","html_url":"https://github.com/jrperritt/rack/pull/39#discussion_r32285690","pull_request_url":"https://api.github.com/repos/jrperritt/rack/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/jrperritt/rack/pulls/comments/32285690"},"html":{"href":"https://github.com/jrperritt/rack/pull/39#discussion_r32285690"},"pull_request":{"href":"https://api.github.com/repos/jrperritt/rack/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/jrperritt/rack/pulls/39","id":37525809,"html_url":"https://github.com/jrperritt/rack/pull/39","diff_url":"https://github.com/jrperritt/rack/pull/39.diff","patch_url":"https://github.com/jrperritt/rack/pull/39.patch","issue_url":"https://api.github.com/repos/jrperritt/rack/issues/39","number":39,"state":"open","locked":false,"title":"[wip] Limit fields","user":{"login":"jrperritt","id":1733222,"avatar_url":"https://avatars.githubusercontent.com/u/1733222?v=3","gravatar_id":"","url":"https://api.github.com/users/jrperritt","html_url":"https://github.com/jrperritt","followers_url":"https://api.github.com/users/jrperritt/followers","following_url":"https://api.github.com/users/jrperritt/following{/other_user}","gists_url":"https://api.github.com/users/jrperritt/gists{/gist_id}","starred_url":"https://api.github.com/users/jrperritt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrperritt/subscriptions","organizations_url":"https://api.github.com/users/jrperritt/orgs","repos_url":"https://api.github.com/users/jrperritt/repos","events_url":"https://api.github.com/users/jrperritt/events{/privacy}","received_events_url":"https://api.github.com/users/jrperritt/received_events","type":"User","site_admin":false},"body":"This PR adds a flag to allow users to limit the fields that come back.","created_at":"2015-06-12T01:52:11Z","updated_at":"2015-06-12T01:56:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8795a741227895c51700c45c9e8fd306391256f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jrperritt/rack/pulls/39/commits","review_comments_url":"https://api.github.com/repos/jrperritt/rack/pulls/39/comments","review_comment_url":"https://api.github.com/repos/jrperritt/rack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jrperritt/rack/issues/39/comments","statuses_url":"https://api.github.com/repos/jrperritt/rack/statuses/b70b76b05cc69fc15ef9d521f0c5cfca03de3f8e","head":{"label":"jrperritt:limit-fields","ref":"limit-fields","sha":"b70b76b05cc69fc15ef9d521f0c5cfca03de3f8e","user":{"login":"jrperritt","id":1733222,"avatar_url":"https://avatars.githubusercontent.com/u/1733222?v=3","gravatar_id":"","url":"https://api.github.com/users/jrperritt","html_url":"https://github.com/jrperritt","followers_url":"https://api.github.com/users/jrperritt/followers","following_url":"https://api.github.com/users/jrperritt/following{/other_user}","gists_url":"https://api.github.com/users/jrperritt/gists{/gist_id}","starred_url":"https://api.github.com/users/jrperritt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrperritt/subscriptions","organizations_url":"https://api.github.com/users/jrperritt/orgs","repos_url":"https://api.github.com/users/jrperritt/repos","events_url":"https://api.github.com/users/jrperritt/events{/privacy}","received_events_url":"https://api.github.com/users/jrperritt/received_events","type":"User","site_admin":false},"repo":{"id":33959631,"name":"rack","full_name":"jrperritt/rack","owner":{"login":"jrperritt","id":1733222,"avatar_url":"https://avatars.githubusercontent.com/u/1733222?v=3","gravatar_id":"","url":"https://api.github.com/users/jrperritt","html_url":"https://github.com/jrperritt","followers_url":"https://api.github.com/users/jrperritt/followers","following_url":"https://api.github.com/users/jrperritt/following{/other_user}","gists_url":"https://api.github.com/users/jrperritt/gists{/gist_id}","starred_url":"https://api.github.com/users/jrperritt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrperritt/subscriptions","organizations_url":"https://api.github.com/users/jrperritt/orgs","repos_url":"https://api.github.com/users/jrperritt/repos","events_url":"https://api.github.com/users/jrperritt/events{/privacy}","received_events_url":"https://api.github.com/users/jrperritt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jrperritt/rack","description":"A CLI for OpenStack-based clouds using Gophercloud","fork":false,"url":"https://api.github.com/repos/jrperritt/rack","forks_url":"https://api.github.com/repos/jrperritt/rack/forks","keys_url":"https://api.github.com/repos/jrperritt/rack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jrperritt/rack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jrperritt/rack/teams","hooks_url":"https://api.github.com/repos/jrperritt/rack/hooks","issue_events_url":"https://api.github.com/repos/jrperritt/rack/issues/events{/number}","events_url":"https://api.github.com/repos/jrperritt/rack/events","assignees_url":"https://api.github.com/repos/jrperritt/rack/assignees{/user}","branches_url":"https://api.github.com/repos/jrperritt/rack/branches{/branch}","tags_url":"https://api.github.com/repos/jrperritt/rack/tags","blobs_url":"https://api.github.com/repos/jrperritt/rack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jrperritt/rack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jrperritt/rack/git/refs{/sha}","trees_url":"https://api.github.com/repos/jrperritt/rack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jrperritt/rack/statuses/{sha}","languages_url":"https://api.github.com/repos/jrperritt/rack/languages","stargazers_url":"https://api.github.com/repos/jrperritt/rack/stargazers","contributors_url":"https://api.github.com/repos/jrperritt/rack/contributors","subscribers_url":"https://api.github.com/repos/jrperritt/rack/subscribers","subscription_url":"https://api.github.com/repos/jrperritt/rack/subscription","commits_url":"https://api.github.com/repos/jrperritt/rack/commits{/sha}","git_commits_url":"https://api.github.com/repos/jrperritt/rack/git/commits{/sha}","comments_url":"https://api.github.com/repos/jrperritt/rack/comments{/number}","issue_comment_url":"https://api.github.com/repos/jrperritt/rack/issues/comments{/number}","contents_url":"https://api.github.com/repos/jrperritt/rack/contents/{+path}","compare_url":"https://api.github.com/repos/jrperritt/rack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jrperritt/rack/merges","archive_url":"https://api.github.com/repos/jrperritt/rack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jrperritt/rack/downloads","issues_url":"https://api.github.com/repos/jrperritt/rack/issues{/number}","pulls_url":"https://api.github.com/repos/jrperritt/rack/pulls{/number}","milestones_url":"https://api.github.com/repos/jrperritt/rack/milestones{/number}","notifications_url":"https://api.github.com/repos/jrperritt/rack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jrperritt/rack/labels{/name}","releases_url":"https://api.github.com/repos/jrperritt/rack/releases{/id}","created_at":"2015-04-14T22:08:59Z","updated_at":"2015-06-12T00:22:01Z","pushed_at":"2015-06-12T01:52:11Z","git_url":"git://github.com/jrperritt/rack.git","ssh_url":"git@github.com:jrperritt/rack.git","clone_url":"https://github.com/jrperritt/rack.git","svn_url":"https://github.com/jrperritt/rack","homepage":null,"size":484,"stargazers_count":4,"watchers_count":4,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":18,"forks":3,"open_issues":18,"watchers":4,"default_branch":"master"}},"base":{"label":"jrperritt:master","ref":"master","sha":"4d434a19009f197ef7cdd3c61951db6c9bbc0401","user":{"login":"jrperritt","id":1733222,"avatar_url":"https://avatars.githubusercontent.com/u/1733222?v=3","gravatar_id":"","url":"https://api.github.com/users/jrperritt","html_url":"https://github.com/jrperritt","followers_url":"https://api.github.com/users/jrperritt/followers","following_url":"https://api.github.com/users/jrperritt/following{/other_user}","gists_url":"https://api.github.com/users/jrperritt/gists{/gist_id}","starred_url":"https://api.github.com/users/jrperritt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrperritt/subscriptions","organizations_url":"https://api.github.com/users/jrperritt/orgs","repos_url":"https://api.github.com/users/jrperritt/repos","events_url":"https://api.github.com/users/jrperritt/events{/privacy}","received_events_url":"https://api.github.com/users/jrperritt/received_events","type":"User","site_admin":false},"repo":{"id":33959631,"name":"rack","full_name":"jrperritt/rack","owner":{"login":"jrperritt","id":1733222,"avatar_url":"https://avatars.githubusercontent.com/u/1733222?v=3","gravatar_id":"","url":"https://api.github.com/users/jrperritt","html_url":"https://github.com/jrperritt","followers_url":"https://api.github.com/users/jrperritt/followers","following_url":"https://api.github.com/users/jrperritt/following{/other_user}","gists_url":"https://api.github.com/users/jrperritt/gists{/gist_id}","starred_url":"https://api.github.com/users/jrperritt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrperritt/subscriptions","organizations_url":"https://api.github.com/users/jrperritt/orgs","repos_url":"https://api.github.com/users/jrperritt/repos","events_url":"https://api.github.com/users/jrperritt/events{/privacy}","received_events_url":"https://api.github.com/users/jrperritt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jrperritt/rack","description":"A CLI for OpenStack-based clouds using Gophercloud","fork":false,"url":"https://api.github.com/repos/jrperritt/rack","forks_url":"https://api.github.com/repos/jrperritt/rack/forks","keys_url":"https://api.github.com/repos/jrperritt/rack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jrperritt/rack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jrperritt/rack/teams","hooks_url":"https://api.github.com/repos/jrperritt/rack/hooks","issue_events_url":"https://api.github.com/repos/jrperritt/rack/issues/events{/number}","events_url":"https://api.github.com/repos/jrperritt/rack/events","assignees_url":"https://api.github.com/repos/jrperritt/rack/assignees{/user}","branches_url":"https://api.github.com/repos/jrperritt/rack/branches{/branch}","tags_url":"https://api.github.com/repos/jrperritt/rack/tags","blobs_url":"https://api.github.com/repos/jrperritt/rack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jrperritt/rack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jrperritt/rack/git/refs{/sha}","trees_url":"https://api.github.com/repos/jrperritt/rack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jrperritt/rack/statuses/{sha}","languages_url":"https://api.github.com/repos/jrperritt/rack/languages","stargazers_url":"https://api.github.com/repos/jrperritt/rack/stargazers","contributors_url":"https://api.github.com/repos/jrperritt/rack/contributors","subscribers_url":"https://api.github.com/repos/jrperritt/rack/subscribers","subscription_url":"https://api.github.com/repos/jrperritt/rack/subscription","commits_url":"https://api.github.com/repos/jrperritt/rack/commits{/sha}","git_commits_url":"https://api.github.com/repos/jrperritt/rack/git/commits{/sha}","comments_url":"https://api.github.com/repos/jrperritt/rack/comments{/number}","issue_comment_url":"https://api.github.com/repos/jrperritt/rack/issues/comments{/number}","contents_url":"https://api.github.com/repos/jrperritt/rack/contents/{+path}","compare_url":"https://api.github.com/repos/jrperritt/rack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jrperritt/rack/merges","archive_url":"https://api.github.com/repos/jrperritt/rack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jrperritt/rack/downloads","issues_url":"https://api.github.com/repos/jrperritt/rack/issues{/number}","pulls_url":"https://api.github.com/repos/jrperritt/rack/pulls{/number}","milestones_url":"https://api.github.com/repos/jrperritt/rack/milestones{/number}","notifications_url":"https://api.github.com/repos/jrperritt/rack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jrperritt/rack/labels{/name}","releases_url":"https://api.github.com/repos/jrperritt/rack/releases{/id}","created_at":"2015-04-14T22:08:59Z","updated_at":"2015-06-12T00:22:01Z","pushed_at":"2015-06-12T01:52:11Z","git_url":"git://github.com/jrperritt/rack.git","ssh_url":"git@github.com:jrperritt/rack.git","clone_url":"https://github.com/jrperritt/rack.git","svn_url":"https://github.com/jrperritt/rack","homepage":null,"size":484,"stargazers_count":4,"watchers_count":4,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":18,"forks":3,"open_issues":18,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jrperritt/rack/pulls/39"},"html":{"href":"https://github.com/jrperritt/rack/pull/39"},"issue":{"href":"https://api.github.com/repos/jrperritt/rack/issues/39"},"comments":{"href":"https://api.github.com/repos/jrperritt/rack/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/jrperritt/rack/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/jrperritt/rack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jrperritt/rack/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/jrperritt/rack/statuses/b70b76b05cc69fc15ef9d521f0c5cfca03de3f8e"}}}}