{"action":"created","comment":{"url":"https://api.github.com/repos/jamesob/desk/pulls/comments/47375533","id":47375533,"diff_hunk":"@@ -114,56 +114,95 @@ cmd_run() {\n }\n \n \n+# Usage:        desk list [options]\n+# Description:  List all desks along with a description\n+# --only-names: List only the names of the desks\n+# --no-format:  Use ' - ' to separate names from descriptions","path":"desk","position":61,"original_position":61,"commit_id":"a890eb829d7603de55b2acf584a8202703fca1b7","original_commit_id":"a890eb829d7603de55b2acf584a8202703fca1b7","user":{"login":"jamesob","id":73197,"avatar_url":"https://avatars.githubusercontent.com/u/73197?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesob","html_url":"https://github.com/jamesob","followers_url":"https://api.github.com/users/jamesob/followers","following_url":"https://api.github.com/users/jamesob/following{/other_user}","gists_url":"https://api.github.com/users/jamesob/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesob/subscriptions","organizations_url":"https://api.github.com/users/jamesob/orgs","repos_url":"https://api.github.com/users/jamesob/repos","events_url":"https://api.github.com/users/jamesob/events{/privacy}","received_events_url":"https://api.github.com/users/jamesob/received_events","type":"User","site_admin":false},"body":"Ah, no more `usage()` message? I kinda liked that. \r\n\r\nWe can implement in a follow-up PR, I guess.","created_at":"2015-12-11T16:41:30Z","updated_at":"2015-12-11T16:41:30Z","html_url":"https://github.com/jamesob/desk/pull/46#discussion_r47375533","pull_request_url":"https://api.github.com/repos/jamesob/desk/pulls/46","_links":{"self":{"href":"https://api.github.com/repos/jamesob/desk/pulls/comments/47375533"},"html":{"href":"https://github.com/jamesob/desk/pull/46#discussion_r47375533"},"pull_request":{"href":"https://api.github.com/repos/jamesob/desk/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/jamesob/desk/pulls/46","id":52696381,"html_url":"https://github.com/jamesob/desk/pull/46","diff_url":"https://github.com/jamesob/desk/pull/46.diff","patch_url":"https://github.com/jamesob/desk/pull/46.patch","issue_url":"https://api.github.com/repos/jamesob/desk/issues/46","number":46,"state":"open","locked":false,"title":"Format list like a table","user":{"login":"cmbankester","id":337779,"avatar_url":"https://avatars.githubusercontent.com/u/337779?v=3","gravatar_id":"","url":"https://api.github.com/users/cmbankester","html_url":"https://github.com/cmbankester","followers_url":"https://api.github.com/users/cmbankester/followers","following_url":"https://api.github.com/users/cmbankester/following{/other_user}","gists_url":"https://api.github.com/users/cmbankester/gists{/gist_id}","starred_url":"https://api.github.com/users/cmbankester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmbankester/subscriptions","organizations_url":"https://api.github.com/users/cmbankester/orgs","repos_url":"https://api.github.com/users/cmbankester/repos","events_url":"https://api.github.com/users/cmbankester/events{/privacy}","received_events_url":"https://api.github.com/users/cmbankester/received_events","type":"User","site_admin":false},"body":"I updated the `cmd_list` function to output the available desks as a table instead of hyphen-delimiting them. See, e.g.:\r\n\r\n**Before:**\r\n```bash\r\n desk git:(master) ✗ desk list\r\nbid-manager - desk for working with the Bid Manager application\r\ndotnet - desk for doing work on a .NET project\r\nelm - Desk for working with Elm projects\r\nfooooooooooooooooooooooooooooooooooooooo - A desk with an exceedingly long name\r\nnode.js - Desk for doing Node.js things\r\nrails - desk for doing work on rails projects\r\ntimenator - desk for doing work on a .NET project\r\n```\r\n\r\n**After:**\r\n```bash\r\n desk git:(master) ✗ ./desk list\r\nNAME                                        DESCRIPTION\r\nbid-manager                                 desk for working with the Bid Manager application\r\ndotnet                                      desk for doing work on a .NET project\r\nelm                                         Desk for working with Elm projects\r\nfooooooooooooooooooooooooooooooooooooooo    A desk with an exceedingly long name\r\nnode.js                                     Desk for doing Node.js things\r\nrails                                       desk for doing work on rails projects\r\ntimenator                                   desk for doing work on a .NET project\r\n```\r\n\r\nCurrently no way to take the terminal width into consideration when listing, but I honestly don't see that being much of an issue these days.\r\n\r\nI have also been considering attenuating the `list` command with an option for outputting only the names of the desks (for better integration into other systems, for instance). Thoughts?","created_at":"2015-12-04T17:19:22Z","updated_at":"2015-12-11T16:41:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"39bc1dd9b2e20afb1ad3c05bf306f367994f8e72","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jamesob/desk/pulls/46/commits","review_comments_url":"https://api.github.com/repos/jamesob/desk/pulls/46/comments","review_comment_url":"https://api.github.com/repos/jamesob/desk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jamesob/desk/issues/46/comments","statuses_url":"https://api.github.com/repos/jamesob/desk/statuses/a890eb829d7603de55b2acf584a8202703fca1b7","head":{"label":"cmbankester:master","ref":"master","sha":"a890eb829d7603de55b2acf584a8202703fca1b7","user":{"login":"cmbankester","id":337779,"avatar_url":"https://avatars.githubusercontent.com/u/337779?v=3","gravatar_id":"","url":"https://api.github.com/users/cmbankester","html_url":"https://github.com/cmbankester","followers_url":"https://api.github.com/users/cmbankester/followers","following_url":"https://api.github.com/users/cmbankester/following{/other_user}","gists_url":"https://api.github.com/users/cmbankester/gists{/gist_id}","starred_url":"https://api.github.com/users/cmbankester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmbankester/subscriptions","organizations_url":"https://api.github.com/users/cmbankester/orgs","repos_url":"https://api.github.com/users/cmbankester/repos","events_url":"https://api.github.com/users/cmbankester/events{/privacy}","received_events_url":"https://api.github.com/users/cmbankester/received_events","type":"User","site_admin":false},"repo":{"id":47414974,"name":"desk","full_name":"cmbankester/desk","owner":{"login":"cmbankester","id":337779,"avatar_url":"https://avatars.githubusercontent.com/u/337779?v=3","gravatar_id":"","url":"https://api.github.com/users/cmbankester","html_url":"https://github.com/cmbankester","followers_url":"https://api.github.com/users/cmbankester/followers","following_url":"https://api.github.com/users/cmbankester/following{/other_user}","gists_url":"https://api.github.com/users/cmbankester/gists{/gist_id}","starred_url":"https://api.github.com/users/cmbankester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmbankester/subscriptions","organizations_url":"https://api.github.com/users/cmbankester/orgs","repos_url":"https://api.github.com/users/cmbankester/repos","events_url":"https://api.github.com/users/cmbankester/events{/privacy}","received_events_url":"https://api.github.com/users/cmbankester/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cmbankester/desk","description":"A lightweight workspace manager for the shell","fork":true,"url":"https://api.github.com/repos/cmbankester/desk","forks_url":"https://api.github.com/repos/cmbankester/desk/forks","keys_url":"https://api.github.com/repos/cmbankester/desk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cmbankester/desk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cmbankester/desk/teams","hooks_url":"https://api.github.com/repos/cmbankester/desk/hooks","issue_events_url":"https://api.github.com/repos/cmbankester/desk/issues/events{/number}","events_url":"https://api.github.com/repos/cmbankester/desk/events","assignees_url":"https://api.github.com/repos/cmbankester/desk/assignees{/user}","branches_url":"https://api.github.com/repos/cmbankester/desk/branches{/branch}","tags_url":"https://api.github.com/repos/cmbankester/desk/tags","blobs_url":"https://api.github.com/repos/cmbankester/desk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cmbankester/desk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cmbankester/desk/git/refs{/sha}","trees_url":"https://api.github.com/repos/cmbankester/desk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cmbankester/desk/statuses/{sha}","languages_url":"https://api.github.com/repos/cmbankester/desk/languages","stargazers_url":"https://api.github.com/repos/cmbankester/desk/stargazers","contributors_url":"https://api.github.com/repos/cmbankester/desk/contributors","subscribers_url":"https://api.github.com/repos/cmbankester/desk/subscribers","subscription_url":"https://api.github.com/repos/cmbankester/desk/subscription","commits_url":"https://api.github.com/repos/cmbankester/desk/commits{/sha}","git_commits_url":"https://api.github.com/repos/cmbankester/desk/git/commits{/sha}","comments_url":"https://api.github.com/repos/cmbankester/desk/comments{/number}","issue_comment_url":"https://api.github.com/repos/cmbankester/desk/issues/comments{/number}","contents_url":"https://api.github.com/repos/cmbankester/desk/contents/{+path}","compare_url":"https://api.github.com/repos/cmbankester/desk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cmbankester/desk/merges","archive_url":"https://api.github.com/repos/cmbankester/desk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cmbankester/desk/downloads","issues_url":"https://api.github.com/repos/cmbankester/desk/issues{/number}","pulls_url":"https://api.github.com/repos/cmbankester/desk/pulls{/number}","milestones_url":"https://api.github.com/repos/cmbankester/desk/milestones{/number}","notifications_url":"https://api.github.com/repos/cmbankester/desk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cmbankester/desk/labels{/name}","releases_url":"https://api.github.com/repos/cmbankester/desk/releases{/id}","created_at":"2015-12-04T16:17:41Z","updated_at":"2015-12-04T16:17:42Z","pushed_at":"2015-12-11T05:34:37Z","git_url":"git://github.com/cmbankester/desk.git","ssh_url":"git@github.com:cmbankester/desk.git","clone_url":"https://github.com/cmbankester/desk.git","svn_url":"https://github.com/cmbankester/desk","homepage":null,"size":454,"stargazers_count":0,"watchers_count":0,"language":"Shell","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":"jamesob:master","ref":"master","sha":"e501b2eda47ac6cec4185a3adecff23b645d5d82","user":{"login":"jamesob","id":73197,"avatar_url":"https://avatars.githubusercontent.com/u/73197?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesob","html_url":"https://github.com/jamesob","followers_url":"https://api.github.com/users/jamesob/followers","following_url":"https://api.github.com/users/jamesob/following{/other_user}","gists_url":"https://api.github.com/users/jamesob/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesob/subscriptions","organizations_url":"https://api.github.com/users/jamesob/orgs","repos_url":"https://api.github.com/users/jamesob/repos","events_url":"https://api.github.com/users/jamesob/events{/privacy}","received_events_url":"https://api.github.com/users/jamesob/received_events","type":"User","site_admin":false},"repo":{"id":44887812,"name":"desk","full_name":"jamesob/desk","owner":{"login":"jamesob","id":73197,"avatar_url":"https://avatars.githubusercontent.com/u/73197?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesob","html_url":"https://github.com/jamesob","followers_url":"https://api.github.com/users/jamesob/followers","following_url":"https://api.github.com/users/jamesob/following{/other_user}","gists_url":"https://api.github.com/users/jamesob/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesob/subscriptions","organizations_url":"https://api.github.com/users/jamesob/orgs","repos_url":"https://api.github.com/users/jamesob/repos","events_url":"https://api.github.com/users/jamesob/events{/privacy}","received_events_url":"https://api.github.com/users/jamesob/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jamesob/desk","description":"A lightweight workspace manager for the shell","fork":false,"url":"https://api.github.com/repos/jamesob/desk","forks_url":"https://api.github.com/repos/jamesob/desk/forks","keys_url":"https://api.github.com/repos/jamesob/desk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jamesob/desk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jamesob/desk/teams","hooks_url":"https://api.github.com/repos/jamesob/desk/hooks","issue_events_url":"https://api.github.com/repos/jamesob/desk/issues/events{/number}","events_url":"https://api.github.com/repos/jamesob/desk/events","assignees_url":"https://api.github.com/repos/jamesob/desk/assignees{/user}","branches_url":"https://api.github.com/repos/jamesob/desk/branches{/branch}","tags_url":"https://api.github.com/repos/jamesob/desk/tags","blobs_url":"https://api.github.com/repos/jamesob/desk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jamesob/desk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jamesob/desk/git/refs{/sha}","trees_url":"https://api.github.com/repos/jamesob/desk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jamesob/desk/statuses/{sha}","languages_url":"https://api.github.com/repos/jamesob/desk/languages","stargazers_url":"https://api.github.com/repos/jamesob/desk/stargazers","contributors_url":"https://api.github.com/repos/jamesob/desk/contributors","subscribers_url":"https://api.github.com/repos/jamesob/desk/subscribers","subscription_url":"https://api.github.com/repos/jamesob/desk/subscription","commits_url":"https://api.github.com/repos/jamesob/desk/commits{/sha}","git_commits_url":"https://api.github.com/repos/jamesob/desk/git/commits{/sha}","comments_url":"https://api.github.com/repos/jamesob/desk/comments{/number}","issue_comment_url":"https://api.github.com/repos/jamesob/desk/issues/comments{/number}","contents_url":"https://api.github.com/repos/jamesob/desk/contents/{+path}","compare_url":"https://api.github.com/repos/jamesob/desk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jamesob/desk/merges","archive_url":"https://api.github.com/repos/jamesob/desk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jamesob/desk/downloads","issues_url":"https://api.github.com/repos/jamesob/desk/issues{/number}","pulls_url":"https://api.github.com/repos/jamesob/desk/pulls{/number}","milestones_url":"https://api.github.com/repos/jamesob/desk/milestones{/number}","notifications_url":"https://api.github.com/repos/jamesob/desk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jamesob/desk/labels{/name}","releases_url":"https://api.github.com/repos/jamesob/desk/releases{/id}","created_at":"2015-10-24T22:42:23Z","updated_at":"2015-12-11T14:53:02Z","pushed_at":"2015-12-11T05:34:38Z","git_url":"git://github.com/jamesob/desk.git","ssh_url":"git@github.com:jamesob/desk.git","clone_url":"https://github.com/jamesob/desk.git","svn_url":"https://github.com/jamesob/desk","homepage":null,"size":450,"stargazers_count":1731,"watchers_count":1731,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":7,"forks":54,"open_issues":7,"watchers":1731,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jamesob/desk/pulls/46"},"html":{"href":"https://github.com/jamesob/desk/pull/46"},"issue":{"href":"https://api.github.com/repos/jamesob/desk/issues/46"},"comments":{"href":"https://api.github.com/repos/jamesob/desk/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/jamesob/desk/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/jamesob/desk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jamesob/desk/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/jamesob/desk/statuses/a890eb829d7603de55b2acf584a8202703fca1b7"}}}}