{"action":"created","issue":{"url":"https://api.github.com/repos/cockroachdb/cockroach/issues/2237","labels_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/2237/labels{/name}","comments_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/2237/comments","events_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/2237/events","html_url":"https://github.com/cockroachdb/cockroach/pull/2237","id":102882108,"number":2237,"title":"Make cli sql output prettier.","user":{"login":"MBerhault","id":5901480,"avatar_url":"https://avatars.githubusercontent.com/u/5901480?v=3","gravatar_id":"","url":"https://api.github.com/users/MBerhault","html_url":"https://github.com/MBerhault","followers_url":"https://api.github.com/users/MBerhault/followers","following_url":"https://api.github.com/users/MBerhault/following{/other_user}","gists_url":"https://api.github.com/users/MBerhault/gists{/gist_id}","starred_url":"https://api.github.com/users/MBerhault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MBerhault/subscriptions","organizations_url":"https://api.github.com/users/MBerhault/orgs","repos_url":"https://api.github.com/users/MBerhault/repos","events_url":"https://api.github.com/users/MBerhault/events{/privacy}","received_events_url":"https://api.github.com/users/MBerhault/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-24T20:17:32Z","updated_at":"2015-08-24T20:25:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/2237","html_url":"https://github.com/cockroachdb/cockroach/pull/2237","diff_url":"https://github.com/cockroachdb/cockroach/pull/2237.diff","patch_url":"https://github.com/cockroachdb/cockroach/pull/2237.patch"},"body":"Use github.com/olekukonko/tablewriter rather than tabwriter,\r\nit does tables just the way we want them.\r\n\r\nBefore:\r\n```sql\r\n> select * from system.namespace\r\nparentIDname\tid\r\n0 system    1\r\n1 descriptor  3\r\n1 namespace 2\r\n```\r\n\r\nAfter:\r\n```sql\r\n> select * from system.namespace\r\n+----------+------------+----+\r\n| PARENTID |    NAME    | ID |\r\n+----------+------------+----+\r\n| 0        | system     | 1  |\r\n| 1        | descriptor | 3  |\r\n| 1        | namespace  | 2  |\r\n+----------+------------+----+\r\n```"},"comment":{"url":"https://api.github.com/repos/cockroachdb/cockroach/issues/comments/134366473","html_url":"https://github.com/cockroachdb/cockroach/pull/2237#issuecomment-134366473","issue_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/2237","id":134366473,"user":{"login":"MBerhault","id":5901480,"avatar_url":"https://avatars.githubusercontent.com/u/5901480?v=3","gravatar_id":"","url":"https://api.github.com/users/MBerhault","html_url":"https://github.com/MBerhault","followers_url":"https://api.github.com/users/MBerhault/followers","following_url":"https://api.github.com/users/MBerhault/following{/other_user}","gists_url":"https://api.github.com/users/MBerhault/gists{/gist_id}","starred_url":"https://api.github.com/users/MBerhault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MBerhault/subscriptions","organizations_url":"https://api.github.com/users/MBerhault/orgs","repos_url":"https://api.github.com/users/MBerhault/repos","events_url":"https://api.github.com/users/MBerhault/events{/privacy}","received_events_url":"https://api.github.com/users/MBerhault/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T20:25:00Z","updated_at":"2015-08-24T20:25:00Z","body":"@BramGruneir: ditto. we really need tests for all cli stuff (I've had #2008 against me for a while). I may do basic table stuff in there, but I'd rather avoid that entirely. As for changes, we control the revision."}}