{"action":"created","comment":{"url":"https://api.github.com/repos/JanOwiesniak/duty/pulls/comments/44790874","id":44790874,"diff_hunk":"@@ -5,14 +5,14 @@ def initialize(args)\n     end\n \n     def exec\n-      stdout explain_duty if missing_command? \n+      stdout usage if missing_command?\n       stdout execute_commands(@args)\n     end\n \n     private\n \n     def stdout(string)\n-      $stdout.puts strip(string)","path":"lib/duty/cli.rb","position":12,"original_position":12,"commit_id":"20a45c58e2afee2b3d60ab613543a8992289b770","original_commit_id":"20a45c58e2afee2b3d60ab613543a8992289b770","user":{"login":"rrrene","id":311914,"avatar_url":"https://avatars.githubusercontent.com/u/311914?v=3","gravatar_id":"","url":"https://api.github.com/users/rrrene","html_url":"https://github.com/rrrene","followers_url":"https://api.github.com/users/rrrene/followers","following_url":"https://api.github.com/users/rrrene/following{/other_user}","gists_url":"https://api.github.com/users/rrrene/gists{/gist_id}","starred_url":"https://api.github.com/users/rrrene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrrene/subscriptions","organizations_url":"https://api.github.com/users/rrrene/orgs","repos_url":"https://api.github.com/users/rrrene/repos","events_url":"https://api.github.com/users/rrrene/events{/privacy}","received_events_url":"https://api.github.com/users/rrrene/received_events","type":"User","site_admin":false},"body":"Any reason for this besides heredocs? Cause formatting the  `usage` for `CLI` was impossible with this `strip` call present ...","created_at":"2015-11-13T15:05:11Z","updated_at":"2015-11-13T15:05:11Z","html_url":"https://github.com/JanOwiesniak/duty/pull/11#discussion_r44790874","pull_request_url":"https://api.github.com/repos/JanOwiesniak/duty/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/JanOwiesniak/duty/pulls/comments/44790874"},"html":{"href":"https://github.com/JanOwiesniak/duty/pull/11#discussion_r44790874"},"pull_request":{"href":"https://api.github.com/repos/JanOwiesniak/duty/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/JanOwiesniak/duty/pulls/11","id":50650282,"html_url":"https://github.com/JanOwiesniak/duty/pull/11","diff_url":"https://github.com/JanOwiesniak/duty/pull/11.diff","patch_url":"https://github.com/JanOwiesniak/duty/pull/11.patch","issue_url":"https://api.github.com/repos/JanOwiesniak/duty/issues/11","number":11,"state":"open","locked":false,"title":"Add command registry and descriptions","user":{"login":"rrrene","id":311914,"avatar_url":"https://avatars.githubusercontent.com/u/311914?v=3","gravatar_id":"","url":"https://api.github.com/users/rrrene","html_url":"https://github.com/rrrene","followers_url":"https://api.github.com/users/rrrene/followers","following_url":"https://api.github.com/users/rrrene/following{/other_user}","gists_url":"https://api.github.com/users/rrrene/gists{/gist_id}","starred_url":"https://api.github.com/users/rrrene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrrene/subscriptions","organizations_url":"https://api.github.com/users/rrrene/orgs","repos_url":"https://api.github.com/users/rrrene/repos","events_url":"https://api.github.com/users/rrrene/events{/privacy}","received_events_url":"https://api.github.com/users/rrrene/received_events","type":"User","site_admin":false},"body":"Auto-loads commands and renders usage help for CLI\r\n","created_at":"2015-11-13T15:04:27Z","updated_at":"2015-11-13T15:05:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cca305c62fa9d03fd2a4739b3d0b09b3281d2e69","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JanOwiesniak/duty/pulls/11/commits","review_comments_url":"https://api.github.com/repos/JanOwiesniak/duty/pulls/11/comments","review_comment_url":"https://api.github.com/repos/JanOwiesniak/duty/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JanOwiesniak/duty/issues/11/comments","statuses_url":"https://api.github.com/repos/JanOwiesniak/duty/statuses/20a45c58e2afee2b3d60ab613543a8992289b770","head":{"label":"JanOwiesniak:add-command-registry-and-descriptions","ref":"add-command-registry-and-descriptions","sha":"20a45c58e2afee2b3d60ab613543a8992289b770","user":{"login":"JanOwiesniak","id":213214,"avatar_url":"https://avatars.githubusercontent.com/u/213214?v=3","gravatar_id":"","url":"https://api.github.com/users/JanOwiesniak","html_url":"https://github.com/JanOwiesniak","followers_url":"https://api.github.com/users/JanOwiesniak/followers","following_url":"https://api.github.com/users/JanOwiesniak/following{/other_user}","gists_url":"https://api.github.com/users/JanOwiesniak/gists{/gist_id}","starred_url":"https://api.github.com/users/JanOwiesniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanOwiesniak/subscriptions","organizations_url":"https://api.github.com/users/JanOwiesniak/orgs","repos_url":"https://api.github.com/users/JanOwiesniak/repos","events_url":"https://api.github.com/users/JanOwiesniak/events{/privacy}","received_events_url":"https://api.github.com/users/JanOwiesniak/received_events","type":"User","site_admin":false},"repo":{"id":45895652,"name":"duty","full_name":"JanOwiesniak/duty","owner":{"login":"JanOwiesniak","id":213214,"avatar_url":"https://avatars.githubusercontent.com/u/213214?v=3","gravatar_id":"","url":"https://api.github.com/users/JanOwiesniak","html_url":"https://github.com/JanOwiesniak","followers_url":"https://api.github.com/users/JanOwiesniak/followers","following_url":"https://api.github.com/users/JanOwiesniak/following{/other_user}","gists_url":"https://api.github.com/users/JanOwiesniak/gists{/gist_id}","starred_url":"https://api.github.com/users/JanOwiesniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanOwiesniak/subscriptions","organizations_url":"https://api.github.com/users/JanOwiesniak/orgs","repos_url":"https://api.github.com/users/JanOwiesniak/repos","events_url":"https://api.github.com/users/JanOwiesniak/events{/privacy}","received_events_url":"https://api.github.com/users/JanOwiesniak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JanOwiesniak/duty","description":"Duty provides high-level repository operations for common git tasks","fork":false,"url":"https://api.github.com/repos/JanOwiesniak/duty","forks_url":"https://api.github.com/repos/JanOwiesniak/duty/forks","keys_url":"https://api.github.com/repos/JanOwiesniak/duty/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JanOwiesniak/duty/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JanOwiesniak/duty/teams","hooks_url":"https://api.github.com/repos/JanOwiesniak/duty/hooks","issue_events_url":"https://api.github.com/repos/JanOwiesniak/duty/issues/events{/number}","events_url":"https://api.github.com/repos/JanOwiesniak/duty/events","assignees_url":"https://api.github.com/repos/JanOwiesniak/duty/assignees{/user}","branches_url":"https://api.github.com/repos/JanOwiesniak/duty/branches{/branch}","tags_url":"https://api.github.com/repos/JanOwiesniak/duty/tags","blobs_url":"https://api.github.com/repos/JanOwiesniak/duty/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JanOwiesniak/duty/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JanOwiesniak/duty/git/refs{/sha}","trees_url":"https://api.github.com/repos/JanOwiesniak/duty/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JanOwiesniak/duty/statuses/{sha}","languages_url":"https://api.github.com/repos/JanOwiesniak/duty/languages","stargazers_url":"https://api.github.com/repos/JanOwiesniak/duty/stargazers","contributors_url":"https://api.github.com/repos/JanOwiesniak/duty/contributors","subscribers_url":"https://api.github.com/repos/JanOwiesniak/duty/subscribers","subscription_url":"https://api.github.com/repos/JanOwiesniak/duty/subscription","commits_url":"https://api.github.com/repos/JanOwiesniak/duty/commits{/sha}","git_commits_url":"https://api.github.com/repos/JanOwiesniak/duty/git/commits{/sha}","comments_url":"https://api.github.com/repos/JanOwiesniak/duty/comments{/number}","issue_comment_url":"https://api.github.com/repos/JanOwiesniak/duty/issues/comments{/number}","contents_url":"https://api.github.com/repos/JanOwiesniak/duty/contents/{+path}","compare_url":"https://api.github.com/repos/JanOwiesniak/duty/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JanOwiesniak/duty/merges","archive_url":"https://api.github.com/repos/JanOwiesniak/duty/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JanOwiesniak/duty/downloads","issues_url":"https://api.github.com/repos/JanOwiesniak/duty/issues{/number}","pulls_url":"https://api.github.com/repos/JanOwiesniak/duty/pulls{/number}","milestones_url":"https://api.github.com/repos/JanOwiesniak/duty/milestones{/number}","notifications_url":"https://api.github.com/repos/JanOwiesniak/duty/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JanOwiesniak/duty/labels{/name}","releases_url":"https://api.github.com/repos/JanOwiesniak/duty/releases{/id}","created_at":"2015-11-10T07:38:53Z","updated_at":"2015-11-13T09:22:42Z","pushed_at":"2015-11-13T15:04:28Z","git_url":"git://github.com/JanOwiesniak/duty.git","ssh_url":"git@github.com:JanOwiesniak/duty.git","clone_url":"https://github.com/JanOwiesniak/duty.git","svn_url":"https://github.com/JanOwiesniak/duty","homepage":null,"size":0,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":1,"default_branch":"master"}},"base":{"label":"JanOwiesniak:master","ref":"master","sha":"9b14faa767af12dc5775134e27ce65b21d62b794","user":{"login":"JanOwiesniak","id":213214,"avatar_url":"https://avatars.githubusercontent.com/u/213214?v=3","gravatar_id":"","url":"https://api.github.com/users/JanOwiesniak","html_url":"https://github.com/JanOwiesniak","followers_url":"https://api.github.com/users/JanOwiesniak/followers","following_url":"https://api.github.com/users/JanOwiesniak/following{/other_user}","gists_url":"https://api.github.com/users/JanOwiesniak/gists{/gist_id}","starred_url":"https://api.github.com/users/JanOwiesniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanOwiesniak/subscriptions","organizations_url":"https://api.github.com/users/JanOwiesniak/orgs","repos_url":"https://api.github.com/users/JanOwiesniak/repos","events_url":"https://api.github.com/users/JanOwiesniak/events{/privacy}","received_events_url":"https://api.github.com/users/JanOwiesniak/received_events","type":"User","site_admin":false},"repo":{"id":45895652,"name":"duty","full_name":"JanOwiesniak/duty","owner":{"login":"JanOwiesniak","id":213214,"avatar_url":"https://avatars.githubusercontent.com/u/213214?v=3","gravatar_id":"","url":"https://api.github.com/users/JanOwiesniak","html_url":"https://github.com/JanOwiesniak","followers_url":"https://api.github.com/users/JanOwiesniak/followers","following_url":"https://api.github.com/users/JanOwiesniak/following{/other_user}","gists_url":"https://api.github.com/users/JanOwiesniak/gists{/gist_id}","starred_url":"https://api.github.com/users/JanOwiesniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanOwiesniak/subscriptions","organizations_url":"https://api.github.com/users/JanOwiesniak/orgs","repos_url":"https://api.github.com/users/JanOwiesniak/repos","events_url":"https://api.github.com/users/JanOwiesniak/events{/privacy}","received_events_url":"https://api.github.com/users/JanOwiesniak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JanOwiesniak/duty","description":"Duty provides high-level repository operations for common git tasks","fork":false,"url":"https://api.github.com/repos/JanOwiesniak/duty","forks_url":"https://api.github.com/repos/JanOwiesniak/duty/forks","keys_url":"https://api.github.com/repos/JanOwiesniak/duty/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JanOwiesniak/duty/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JanOwiesniak/duty/teams","hooks_url":"https://api.github.com/repos/JanOwiesniak/duty/hooks","issue_events_url":"https://api.github.com/repos/JanOwiesniak/duty/issues/events{/number}","events_url":"https://api.github.com/repos/JanOwiesniak/duty/events","assignees_url":"https://api.github.com/repos/JanOwiesniak/duty/assignees{/user}","branches_url":"https://api.github.com/repos/JanOwiesniak/duty/branches{/branch}","tags_url":"https://api.github.com/repos/JanOwiesniak/duty/tags","blobs_url":"https://api.github.com/repos/JanOwiesniak/duty/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JanOwiesniak/duty/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JanOwiesniak/duty/git/refs{/sha}","trees_url":"https://api.github.com/repos/JanOwiesniak/duty/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JanOwiesniak/duty/statuses/{sha}","languages_url":"https://api.github.com/repos/JanOwiesniak/duty/languages","stargazers_url":"https://api.github.com/repos/JanOwiesniak/duty/stargazers","contributors_url":"https://api.github.com/repos/JanOwiesniak/duty/contributors","subscribers_url":"https://api.github.com/repos/JanOwiesniak/duty/subscribers","subscription_url":"https://api.github.com/repos/JanOwiesniak/duty/subscription","commits_url":"https://api.github.com/repos/JanOwiesniak/duty/commits{/sha}","git_commits_url":"https://api.github.com/repos/JanOwiesniak/duty/git/commits{/sha}","comments_url":"https://api.github.com/repos/JanOwiesniak/duty/comments{/number}","issue_comment_url":"https://api.github.com/repos/JanOwiesniak/duty/issues/comments{/number}","contents_url":"https://api.github.com/repos/JanOwiesniak/duty/contents/{+path}","compare_url":"https://api.github.com/repos/JanOwiesniak/duty/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JanOwiesniak/duty/merges","archive_url":"https://api.github.com/repos/JanOwiesniak/duty/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JanOwiesniak/duty/downloads","issues_url":"https://api.github.com/repos/JanOwiesniak/duty/issues{/number}","pulls_url":"https://api.github.com/repos/JanOwiesniak/duty/pulls{/number}","milestones_url":"https://api.github.com/repos/JanOwiesniak/duty/milestones{/number}","notifications_url":"https://api.github.com/repos/JanOwiesniak/duty/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JanOwiesniak/duty/labels{/name}","releases_url":"https://api.github.com/repos/JanOwiesniak/duty/releases{/id}","created_at":"2015-11-10T07:38:53Z","updated_at":"2015-11-13T09:22:42Z","pushed_at":"2015-11-13T15:04:28Z","git_url":"git://github.com/JanOwiesniak/duty.git","ssh_url":"git@github.com:JanOwiesniak/duty.git","clone_url":"https://github.com/JanOwiesniak/duty.git","svn_url":"https://github.com/JanOwiesniak/duty","homepage":null,"size":0,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JanOwiesniak/duty/pulls/11"},"html":{"href":"https://github.com/JanOwiesniak/duty/pull/11"},"issue":{"href":"https://api.github.com/repos/JanOwiesniak/duty/issues/11"},"comments":{"href":"https://api.github.com/repos/JanOwiesniak/duty/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/JanOwiesniak/duty/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/JanOwiesniak/duty/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JanOwiesniak/duty/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/JanOwiesniak/duty/statuses/20a45c58e2afee2b3d60ab613543a8992289b770"}}}}