{"action":"created","comment":{"url":"https://api.github.com/repos/koding/koding/pulls/comments/90765339","pull_request_review_id":11284247,"id":90765339,"diff_hunk":"@@ -3,15 +3,63 @@ package main\n import (\n \t\"encoding/json\"\n \t\"fmt\"\n-\t\"koding/klientctl/endpoint/team\"\n \t\"os\"\n+\t\"text/tabwriter\"\n+\n+\t\"koding/kites/kloud/team\"\n+\tepteam \"koding/klientctl/endpoint/team\"\n \n \t\"github.com/codegangsta/cli\"\n \t\"github.com/koding/logging\"\n )\n \n+func TeamList(c *cli.Context, log logging.Logger, _ string) (int, error) {\n+\topts := &epteam.ListOptions{\n+\t\tSlug: c.String(\"slug\"),\n+\t}\n+\n+\tteams, err := epteam.List(opts)\n+\tif err != nil {\n+\t\treturn 0, err\n+\t}\n+\n+\tif len(teams) == 0 {","path":"go/src/koding/klientctl/team.go","position":25,"original_position":25,"commit_id":"bd496ac0a9c293791db54bbb89576bef6969fe5a","original_commit_id":"bd496ac0a9c293791db54bbb89576bef6969fe5a","user":{"login":"rjeczalik","id":1162017,"avatar_url":"https://avatars.githubusercontent.com/u/1162017?v=3","gravatar_id":"","url":"https://api.github.com/users/rjeczalik","html_url":"https://github.com/rjeczalik","followers_url":"https://api.github.com/users/rjeczalik/followers","following_url":"https://api.github.com/users/rjeczalik/following{/other_user}","gists_url":"https://api.github.com/users/rjeczalik/gists{/gist_id}","starred_url":"https://api.github.com/users/rjeczalik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjeczalik/subscriptions","organizations_url":"https://api.github.com/users/rjeczalik/orgs","repos_url":"https://api.github.com/users/rjeczalik/repos","events_url":"https://api.github.com/users/rjeczalik/events{/privacy}","received_events_url":"https://api.github.com/users/rjeczalik/received_events","type":"User","site_admin":false},"body":"As you wish, but this is opposite what we have now currently. I tried to return various ErrNotFound errors when things to return were not found.","created_at":"2016-12-03T21:24:51Z","updated_at":"2016-12-03T21:24:51Z","html_url":"https://github.com/koding/koding/pull/9852#discussion_r90765339","pull_request_url":"https://api.github.com/repos/koding/koding/pulls/9852","_links":{"self":{"href":"https://api.github.com/repos/koding/koding/pulls/comments/90765339"},"html":{"href":"https://github.com/koding/koding/pull/9852#discussion_r90765339"},"pull_request":{"href":"https://api.github.com/repos/koding/koding/pulls/9852"}}},"pull_request":{"url":"https://api.github.com/repos/koding/koding/pulls/9852","id":96122605,"html_url":"https://github.com/koding/koding/pull/9852","diff_url":"https://github.com/koding/koding/pull/9852.diff","patch_url":"https://github.com/koding/koding/pull/9852.patch","issue_url":"https://api.github.com/repos/koding/koding/issues/9852","number":9852,"state":"open","locked":false,"title":"Add KD team list subcommand","user":{"login":"ppknap","id":5021246,"avatar_url":"https://avatars.githubusercontent.com/u/5021246?v=3","gravatar_id":"","url":"https://api.github.com/users/ppknap","html_url":"https://github.com/ppknap","followers_url":"https://api.github.com/users/ppknap/followers","following_url":"https://api.github.com/users/ppknap/following{/other_user}","gists_url":"https://api.github.com/users/ppknap/gists{/gist_id}","starred_url":"https://api.github.com/users/ppknap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppknap/subscriptions","organizations_url":"https://api.github.com/users/ppknap/orgs","repos_url":"https://api.github.com/users/ppknap/repos","events_url":"https://api.github.com/users/ppknap/events{/privacy}","received_events_url":"https://api.github.com/users/ppknap/received_events","type":"User","site_admin":false},"body":"This PR adds `kd team list` subcommand.\r\n\r\nPart of: #9689\r\nDepends on: #9828\r\n\r\n```\r\n$ ./klientctl team list\r\nNAME    SLUG          PRIVACY  MEMBERS  SUBSCRIPTION\r\ngoogle  google        private  1        trialing\r\nkoding  koding-pawel  private  1        trialing\r\n$ ./klientctl team list --json\r\n[\r\n\t{\r\n\t\t\"name\": \"google\",\r\n\t\t\"slug\": \"google\",\r\n\t\t\"members\": \"1\",\r\n\t\t\"privacy\": \"private\",\r\n\t\t\"subscription\": \"trialing\"\r\n\t},\r\n\t{\r\n\t\t\"name\": \"koding\",\r\n\t\t\"slug\": \"koding-pawel\",\r\n\t\t\"members\": \"1\",\r\n\t\t\"privacy\": \"private\",\r\n\t\t\"subscription\": \"trialing\"\r\n\t}\r\n]\r\n$ ./klientctl team list --slug=google\r\nNAME    SLUG    PRIVACY  MEMBERS  SUBSCRIPTION\r\ngoogle  google  private  1        trialing\r\n$ ./klientctl team list --slug=none\r\nCannot find \"none\" team.\r\n```\r\n","created_at":"2016-12-01T16:30:00Z","updated_at":"2016-12-03T21:24:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1ba96e6ea164098db6b55fb8f2c9aa068379cd4f","assignee":{"login":"cihangir","id":879660,"avatar_url":"https://avatars.githubusercontent.com/u/879660?v=3","gravatar_id":"","url":"https://api.github.com/users/cihangir","html_url":"https://github.com/cihangir","followers_url":"https://api.github.com/users/cihangir/followers","following_url":"https://api.github.com/users/cihangir/following{/other_user}","gists_url":"https://api.github.com/users/cihangir/gists{/gist_id}","starred_url":"https://api.github.com/users/cihangir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cihangir/subscriptions","organizations_url":"https://api.github.com/users/cihangir/orgs","repos_url":"https://api.github.com/users/cihangir/repos","events_url":"https://api.github.com/users/cihangir/events{/privacy}","received_events_url":"https://api.github.com/users/cihangir/received_events","type":"User","site_admin":false},"assignees":[{"login":"cihangir","id":879660,"avatar_url":"https://avatars.githubusercontent.com/u/879660?v=3","gravatar_id":"","url":"https://api.github.com/users/cihangir","html_url":"https://github.com/cihangir","followers_url":"https://api.github.com/users/cihangir/followers","following_url":"https://api.github.com/users/cihangir/following{/other_user}","gists_url":"https://api.github.com/users/cihangir/gists{/gist_id}","starred_url":"https://api.github.com/users/cihangir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cihangir/subscriptions","organizations_url":"https://api.github.com/users/cihangir/orgs","repos_url":"https://api.github.com/users/cihangir/repos","events_url":"https://api.github.com/users/cihangir/events{/privacy}","received_events_url":"https://api.github.com/users/cihangir/received_events","type":"User","site_admin":false},{"login":"rjeczalik","id":1162017,"avatar_url":"https://avatars.githubusercontent.com/u/1162017?v=3","gravatar_id":"","url":"https://api.github.com/users/rjeczalik","html_url":"https://github.com/rjeczalik","followers_url":"https://api.github.com/users/rjeczalik/followers","following_url":"https://api.github.com/users/rjeczalik/following{/other_user}","gists_url":"https://api.github.com/users/rjeczalik/gists{/gist_id}","starred_url":"https://api.github.com/users/rjeczalik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjeczalik/subscriptions","organizations_url":"https://api.github.com/users/rjeczalik/orgs","repos_url":"https://api.github.com/users/rjeczalik/repos","events_url":"https://api.github.com/users/rjeczalik/events{/privacy}","received_events_url":"https://api.github.com/users/rjeczalik/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/koding/koding/pulls/9852/commits","review_comments_url":"https://api.github.com/repos/koding/koding/pulls/9852/comments","review_comment_url":"https://api.github.com/repos/koding/koding/pulls/comments{/number}","comments_url":"https://api.github.com/repos/koding/koding/issues/9852/comments","statuses_url":"https://api.github.com/repos/koding/koding/statuses/bd496ac0a9c293791db54bbb89576bef6969fe5a","head":{"label":"koding:kd_team_list","ref":"kd_team_list","sha":"bd496ac0a9c293791db54bbb89576bef6969fe5a","user":{"login":"koding","id":1066754,"avatar_url":"https://avatars.githubusercontent.com/u/1066754?v=3","gravatar_id":"","url":"https://api.github.com/users/koding","html_url":"https://github.com/koding","followers_url":"https://api.github.com/users/koding/followers","following_url":"https://api.github.com/users/koding/following{/other_user}","gists_url":"https://api.github.com/users/koding/gists{/gist_id}","starred_url":"https://api.github.com/users/koding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koding/subscriptions","organizations_url":"https://api.github.com/users/koding/orgs","repos_url":"https://api.github.com/users/koding/repos","events_url":"https://api.github.com/users/koding/events{/privacy}","received_events_url":"https://api.github.com/users/koding/received_events","type":"Organization","site_admin":false},"repo":{"id":21317360,"name":"koding","full_name":"koding/koding","owner":{"login":"koding","id":1066754,"avatar_url":"https://avatars.githubusercontent.com/u/1066754?v=3","gravatar_id":"","url":"https://api.github.com/users/koding","html_url":"https://github.com/koding","followers_url":"https://api.github.com/users/koding/followers","following_url":"https://api.github.com/users/koding/following{/other_user}","gists_url":"https://api.github.com/users/koding/gists{/gist_id}","starred_url":"https://api.github.com/users/koding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koding/subscriptions","organizations_url":"https://api.github.com/users/koding/orgs","repos_url":"https://api.github.com/users/koding/repos","events_url":"https://api.github.com/users/koding/events{/privacy}","received_events_url":"https://api.github.com/users/koding/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/koding/koding","description":"The Simplest Way to Manage Your Entire Dev Infrastructure!","fork":false,"url":"https://api.github.com/repos/koding/koding","forks_url":"https://api.github.com/repos/koding/koding/forks","keys_url":"https://api.github.com/repos/koding/koding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/koding/koding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/koding/koding/teams","hooks_url":"https://api.github.com/repos/koding/koding/hooks","issue_events_url":"https://api.github.com/repos/koding/koding/issues/events{/number}","events_url":"https://api.github.com/repos/koding/koding/events","assignees_url":"https://api.github.com/repos/koding/koding/assignees{/user}","branches_url":"https://api.github.com/repos/koding/koding/branches{/branch}","tags_url":"https://api.github.com/repos/koding/koding/tags","blobs_url":"https://api.github.com/repos/koding/koding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/koding/koding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/koding/koding/git/refs{/sha}","trees_url":"https://api.github.com/repos/koding/koding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/koding/koding/statuses/{sha}","languages_url":"https://api.github.com/repos/koding/koding/languages","stargazers_url":"https://api.github.com/repos/koding/koding/stargazers","contributors_url":"https://api.github.com/repos/koding/koding/contributors","subscribers_url":"https://api.github.com/repos/koding/koding/subscribers","subscription_url":"https://api.github.com/repos/koding/koding/subscription","commits_url":"https://api.github.com/repos/koding/koding/commits{/sha}","git_commits_url":"https://api.github.com/repos/koding/koding/git/commits{/sha}","comments_url":"https://api.github.com/repos/koding/koding/comments{/number}","issue_comment_url":"https://api.github.com/repos/koding/koding/issues/comments{/number}","contents_url":"https://api.github.com/repos/koding/koding/contents/{+path}","compare_url":"https://api.github.com/repos/koding/koding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/koding/koding/merges","archive_url":"https://api.github.com/repos/koding/koding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/koding/koding/downloads","issues_url":"https://api.github.com/repos/koding/koding/issues{/number}","pulls_url":"https://api.github.com/repos/koding/koding/pulls{/number}","milestones_url":"https://api.github.com/repos/koding/koding/milestones{/number}","notifications_url":"https://api.github.com/repos/koding/koding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/koding/koding/labels{/name}","releases_url":"https://api.github.com/repos/koding/koding/releases{/id}","deployments_url":"https://api.github.com/repos/koding/koding/deployments","created_at":"2014-06-29T05:46:24Z","updated_at":"2016-11-30T12:30:31Z","pushed_at":"2016-12-03T20:21:44Z","git_url":"git://github.com/koding/koding.git","ssh_url":"git@github.com:koding/koding.git","clone_url":"https://github.com/koding/koding.git","svn_url":"https://github.com/koding/koding","homepage":"https://www.koding.com","size":825843,"stargazers_count":464,"watchers_count":464,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":64,"mirror_url":null,"open_issues_count":253,"forks":64,"open_issues":253,"watchers":464,"default_branch":"master"}},"base":{"label":"koding:master","ref":"master","sha":"111e04b0afb6b7bcdbe44dd9d78a9f2e3a349060","user":{"login":"koding","id":1066754,"avatar_url":"https://avatars.githubusercontent.com/u/1066754?v=3","gravatar_id":"","url":"https://api.github.com/users/koding","html_url":"https://github.com/koding","followers_url":"https://api.github.com/users/koding/followers","following_url":"https://api.github.com/users/koding/following{/other_user}","gists_url":"https://api.github.com/users/koding/gists{/gist_id}","starred_url":"https://api.github.com/users/koding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koding/subscriptions","organizations_url":"https://api.github.com/users/koding/orgs","repos_url":"https://api.github.com/users/koding/repos","events_url":"https://api.github.com/users/koding/events{/privacy}","received_events_url":"https://api.github.com/users/koding/received_events","type":"Organization","site_admin":false},"repo":{"id":21317360,"name":"koding","full_name":"koding/koding","owner":{"login":"koding","id":1066754,"avatar_url":"https://avatars.githubusercontent.com/u/1066754?v=3","gravatar_id":"","url":"https://api.github.com/users/koding","html_url":"https://github.com/koding","followers_url":"https://api.github.com/users/koding/followers","following_url":"https://api.github.com/users/koding/following{/other_user}","gists_url":"https://api.github.com/users/koding/gists{/gist_id}","starred_url":"https://api.github.com/users/koding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koding/subscriptions","organizations_url":"https://api.github.com/users/koding/orgs","repos_url":"https://api.github.com/users/koding/repos","events_url":"https://api.github.com/users/koding/events{/privacy}","received_events_url":"https://api.github.com/users/koding/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/koding/koding","description":"The Simplest Way to Manage Your Entire Dev Infrastructure!","fork":false,"url":"https://api.github.com/repos/koding/koding","forks_url":"https://api.github.com/repos/koding/koding/forks","keys_url":"https://api.github.com/repos/koding/koding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/koding/koding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/koding/koding/teams","hooks_url":"https://api.github.com/repos/koding/koding/hooks","issue_events_url":"https://api.github.com/repos/koding/koding/issues/events{/number}","events_url":"https://api.github.com/repos/koding/koding/events","assignees_url":"https://api.github.com/repos/koding/koding/assignees{/user}","branches_url":"https://api.github.com/repos/koding/koding/branches{/branch}","tags_url":"https://api.github.com/repos/koding/koding/tags","blobs_url":"https://api.github.com/repos/koding/koding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/koding/koding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/koding/koding/git/refs{/sha}","trees_url":"https://api.github.com/repos/koding/koding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/koding/koding/statuses/{sha}","languages_url":"https://api.github.com/repos/koding/koding/languages","stargazers_url":"https://api.github.com/repos/koding/koding/stargazers","contributors_url":"https://api.github.com/repos/koding/koding/contributors","subscribers_url":"https://api.github.com/repos/koding/koding/subscribers","subscription_url":"https://api.github.com/repos/koding/koding/subscription","commits_url":"https://api.github.com/repos/koding/koding/commits{/sha}","git_commits_url":"https://api.github.com/repos/koding/koding/git/commits{/sha}","comments_url":"https://api.github.com/repos/koding/koding/comments{/number}","issue_comment_url":"https://api.github.com/repos/koding/koding/issues/comments{/number}","contents_url":"https://api.github.com/repos/koding/koding/contents/{+path}","compare_url":"https://api.github.com/repos/koding/koding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/koding/koding/merges","archive_url":"https://api.github.com/repos/koding/koding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/koding/koding/downloads","issues_url":"https://api.github.com/repos/koding/koding/issues{/number}","pulls_url":"https://api.github.com/repos/koding/koding/pulls{/number}","milestones_url":"https://api.github.com/repos/koding/koding/milestones{/number}","notifications_url":"https://api.github.com/repos/koding/koding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/koding/koding/labels{/name}","releases_url":"https://api.github.com/repos/koding/koding/releases{/id}","deployments_url":"https://api.github.com/repos/koding/koding/deployments","created_at":"2014-06-29T05:46:24Z","updated_at":"2016-11-30T12:30:31Z","pushed_at":"2016-12-03T20:21:44Z","git_url":"git://github.com/koding/koding.git","ssh_url":"git@github.com:koding/koding.git","clone_url":"https://github.com/koding/koding.git","svn_url":"https://github.com/koding/koding","homepage":"https://www.koding.com","size":825843,"stargazers_count":464,"watchers_count":464,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":64,"mirror_url":null,"open_issues_count":253,"forks":64,"open_issues":253,"watchers":464,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/koding/koding/pulls/9852"},"html":{"href":"https://github.com/koding/koding/pull/9852"},"issue":{"href":"https://api.github.com/repos/koding/koding/issues/9852"},"comments":{"href":"https://api.github.com/repos/koding/koding/issues/9852/comments"},"review_comments":{"href":"https://api.github.com/repos/koding/koding/pulls/9852/comments"},"review_comment":{"href":"https://api.github.com/repos/koding/koding/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/koding/koding/pulls/9852/commits"},"statuses":{"href":"https://api.github.com/repos/koding/koding/statuses/bd496ac0a9c293791db54bbb89576bef6969fe5a"}}}}
{"actor":{"display_login":"rjeczalik"}}