{"action":"closed","number":1770,"pull_request":{"url":"https://api.github.com/repos/manastech/crystal/pulls/1770","id":48007007,"html_url":"https://github.com/manastech/crystal/pull/1770","diff_url":"https://github.com/manastech/crystal/pull/1770.diff","patch_url":"https://github.com/manastech/crystal/pull/1770.patch","issue_url":"https://api.github.com/repos/manastech/crystal/issues/1770","number":1770,"state":"closed","locked":false,"title":"Add `crystal help` and `crystal version` subcommand","user":{"login":"MakeNowJust","id":6679325,"avatar_url":"https://avatars.githubusercontent.com/u/6679325?v=3","gravatar_id":"","url":"https://api.github.com/users/MakeNowJust","html_url":"https://github.com/MakeNowJust","followers_url":"https://api.github.com/users/MakeNowJust/followers","following_url":"https://api.github.com/users/MakeNowJust/following{/other_user}","gists_url":"https://api.github.com/users/MakeNowJust/gists{/gist_id}","starred_url":"https://api.github.com/users/MakeNowJust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MakeNowJust/subscriptions","organizations_url":"https://api.github.com/users/MakeNowJust/orgs","repos_url":"https://api.github.com/users/MakeNowJust/repos","events_url":"https://api.github.com/users/MakeNowJust/events{/privacy}","received_events_url":"https://api.github.com/users/MakeNowJust/received_events","type":"User","site_admin":false},"body":"First challenge, `git`:\r\n\r\n```console\r\n$ git help\r\nusage: git [--version] [--help] [-C <path>] [-c name=value]\r\n           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]\r\n           [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]\r\n           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]\r\n           <command> [<args>]\r\n\r\nThe most commonly used git commands are:\r\n   add        Add file contents to the index\r\n   bisect     Find by binary search the change that introduced a bug\r\n   branch     List, create, or delete branches\r\n...\r\n```\r\n\r\nSecond, `npm`:\r\n\r\n```console\r\n$ npm help\r\nUsage: npm <command>\r\n\r\nwhere <command> is one of:\r\n    access, add-user, adduser, apihelp, author, bin, bugs, c,\r\n    cache, completion, config, ddp, dedupe, deprecate, dist-tag,\r\n    dist-tags, docs, edit, explore, faq, find, find-dupes, get,\r\n    help, help-search, home, i, info, init, install, issues, la,\r\n    link, list, ll, ln, login, logout, ls, outdated, owner,\r\n    pack, ping, prefix, prune, publish, r, rb, rebuild, remove,\r\n    repo, restart, rm, root, run-script, s, se, search, set,\r\n    show, shrinkwrap, star, stars, start, stop, t, tag, team,\r\n    test, tst, un, uninstall, unlink, unpublish, unstar, up,\r\n    update, upgrade, v, verison, version, view, whoami\r\n\r\nnpm <cmd> -h     quick help on <cmd>\r\n...\r\n```\r\n\r\nThird, `bundle`:\r\n\r\n```console\r\n$ bundle help\r\n(show man help for bundle command)\r\n```\r\n\r\nGood!\r\n\r\nLast, `crystal`:\r\n\r\n```console\r\n$ crystal help\r\nError: unknown command: help\r\n```\r\n\r\nOh, no! So, I added `crystal help` and `crystal version`.","created_at":"2015-10-18T11:59:07Z","updated_at":"2015-10-18T12:37:02Z","closed_at":"2015-10-18T12:37:02Z","merged_at":"2015-10-18T12:37:02Z","merge_commit_sha":"3c8542f9f7885ca4998864e00db5883d7c544ad8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/manastech/crystal/pulls/1770/commits","review_comments_url":"https://api.github.com/repos/manastech/crystal/pulls/1770/comments","review_comment_url":"https://api.github.com/repos/manastech/crystal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/manastech/crystal/issues/1770/comments","statuses_url":"https://api.github.com/repos/manastech/crystal/statuses/292df6397719a89e2c5e87c2ca8e05b4b36329ec","head":{"label":"MakeNowJust:crystal-help","ref":"crystal-help","sha":"292df6397719a89e2c5e87c2ca8e05b4b36329ec","user":{"login":"MakeNowJust","id":6679325,"avatar_url":"https://avatars.githubusercontent.com/u/6679325?v=3","gravatar_id":"","url":"https://api.github.com/users/MakeNowJust","html_url":"https://github.com/MakeNowJust","followers_url":"https://api.github.com/users/MakeNowJust/followers","following_url":"https://api.github.com/users/MakeNowJust/following{/other_user}","gists_url":"https://api.github.com/users/MakeNowJust/gists{/gist_id}","starred_url":"https://api.github.com/users/MakeNowJust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MakeNowJust/subscriptions","organizations_url":"https://api.github.com/users/MakeNowJust/orgs","repos_url":"https://api.github.com/users/MakeNowJust/repos","events_url":"https://api.github.com/users/MakeNowJust/events{/privacy}","received_events_url":"https://api.github.com/users/MakeNowJust/received_events","type":"User","site_admin":false},"repo":{"id":38912767,"name":"crystal","full_name":"MakeNowJust/crystal","owner":{"login":"MakeNowJust","id":6679325,"avatar_url":"https://avatars.githubusercontent.com/u/6679325?v=3","gravatar_id":"","url":"https://api.github.com/users/MakeNowJust","html_url":"https://github.com/MakeNowJust","followers_url":"https://api.github.com/users/MakeNowJust/followers","following_url":"https://api.github.com/users/MakeNowJust/following{/other_user}","gists_url":"https://api.github.com/users/MakeNowJust/gists{/gist_id}","starred_url":"https://api.github.com/users/MakeNowJust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MakeNowJust/subscriptions","organizations_url":"https://api.github.com/users/MakeNowJust/orgs","repos_url":"https://api.github.com/users/MakeNowJust/repos","events_url":"https://api.github.com/users/MakeNowJust/events{/privacy}","received_events_url":"https://api.github.com/users/MakeNowJust/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MakeNowJust/crystal","description":"The Crystal Programming Language","fork":true,"url":"https://api.github.com/repos/MakeNowJust/crystal","forks_url":"https://api.github.com/repos/MakeNowJust/crystal/forks","keys_url":"https://api.github.com/repos/MakeNowJust/crystal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MakeNowJust/crystal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MakeNowJust/crystal/teams","hooks_url":"https://api.github.com/repos/MakeNowJust/crystal/hooks","issue_events_url":"https://api.github.com/repos/MakeNowJust/crystal/issues/events{/number}","events_url":"https://api.github.com/repos/MakeNowJust/crystal/events","assignees_url":"https://api.github.com/repos/MakeNowJust/crystal/assignees{/user}","branches_url":"https://api.github.com/repos/MakeNowJust/crystal/branches{/branch}","tags_url":"https://api.github.com/repos/MakeNowJust/crystal/tags","blobs_url":"https://api.github.com/repos/MakeNowJust/crystal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MakeNowJust/crystal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MakeNowJust/crystal/git/refs{/sha}","trees_url":"https://api.github.com/repos/MakeNowJust/crystal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MakeNowJust/crystal/statuses/{sha}","languages_url":"https://api.github.com/repos/MakeNowJust/crystal/languages","stargazers_url":"https://api.github.com/repos/MakeNowJust/crystal/stargazers","contributors_url":"https://api.github.com/repos/MakeNowJust/crystal/contributors","subscribers_url":"https://api.github.com/repos/MakeNowJust/crystal/subscribers","subscription_url":"https://api.github.com/repos/MakeNowJust/crystal/subscription","commits_url":"https://api.github.com/repos/MakeNowJust/crystal/commits{/sha}","git_commits_url":"https://api.github.com/repos/MakeNowJust/crystal/git/commits{/sha}","comments_url":"https://api.github.com/repos/MakeNowJust/crystal/comments{/number}","issue_comment_url":"https://api.github.com/repos/MakeNowJust/crystal/issues/comments{/number}","contents_url":"https://api.github.com/repos/MakeNowJust/crystal/contents/{+path}","compare_url":"https://api.github.com/repos/MakeNowJust/crystal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MakeNowJust/crystal/merges","archive_url":"https://api.github.com/repos/MakeNowJust/crystal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MakeNowJust/crystal/downloads","issues_url":"https://api.github.com/repos/MakeNowJust/crystal/issues{/number}","pulls_url":"https://api.github.com/repos/MakeNowJust/crystal/pulls{/number}","milestones_url":"https://api.github.com/repos/MakeNowJust/crystal/milestones{/number}","notifications_url":"https://api.github.com/repos/MakeNowJust/crystal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MakeNowJust/crystal/labels{/name}","releases_url":"https://api.github.com/repos/MakeNowJust/crystal/releases{/id}","created_at":"2015-07-11T03:48:50Z","updated_at":"2015-07-11T03:48:52Z","pushed_at":"2015-10-18T12:06:51Z","git_url":"git://github.com/MakeNowJust/crystal.git","ssh_url":"git@github.com:MakeNowJust/crystal.git","clone_url":"https://github.com/MakeNowJust/crystal.git","svn_url":"https://github.com/MakeNowJust/crystal","homepage":"http://crystal-lang.org","size":30845,"stargazers_count":0,"watchers_count":0,"language":"Crystal","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"manastech:master","ref":"master","sha":"2153edfe65bf52917368ba62bebf8b0671f10d45","user":{"login":"manastech","id":1354950,"avatar_url":"https://avatars.githubusercontent.com/u/1354950?v=3","gravatar_id":"","url":"https://api.github.com/users/manastech","html_url":"https://github.com/manastech","followers_url":"https://api.github.com/users/manastech/followers","following_url":"https://api.github.com/users/manastech/following{/other_user}","gists_url":"https://api.github.com/users/manastech/gists{/gist_id}","starred_url":"https://api.github.com/users/manastech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manastech/subscriptions","organizations_url":"https://api.github.com/users/manastech/orgs","repos_url":"https://api.github.com/users/manastech/repos","events_url":"https://api.github.com/users/manastech/events{/privacy}","received_events_url":"https://api.github.com/users/manastech/received_events","type":"Organization","site_admin":false},"repo":{"id":6887813,"name":"crystal","full_name":"manastech/crystal","owner":{"login":"manastech","id":1354950,"avatar_url":"https://avatars.githubusercontent.com/u/1354950?v=3","gravatar_id":"","url":"https://api.github.com/users/manastech","html_url":"https://github.com/manastech","followers_url":"https://api.github.com/users/manastech/followers","following_url":"https://api.github.com/users/manastech/following{/other_user}","gists_url":"https://api.github.com/users/manastech/gists{/gist_id}","starred_url":"https://api.github.com/users/manastech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manastech/subscriptions","organizations_url":"https://api.github.com/users/manastech/orgs","repos_url":"https://api.github.com/users/manastech/repos","events_url":"https://api.github.com/users/manastech/events{/privacy}","received_events_url":"https://api.github.com/users/manastech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/manastech/crystal","description":"The Crystal Programming Language","fork":false,"url":"https://api.github.com/repos/manastech/crystal","forks_url":"https://api.github.com/repos/manastech/crystal/forks","keys_url":"https://api.github.com/repos/manastech/crystal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/manastech/crystal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/manastech/crystal/teams","hooks_url":"https://api.github.com/repos/manastech/crystal/hooks","issue_events_url":"https://api.github.com/repos/manastech/crystal/issues/events{/number}","events_url":"https://api.github.com/repos/manastech/crystal/events","assignees_url":"https://api.github.com/repos/manastech/crystal/assignees{/user}","branches_url":"https://api.github.com/repos/manastech/crystal/branches{/branch}","tags_url":"https://api.github.com/repos/manastech/crystal/tags","blobs_url":"https://api.github.com/repos/manastech/crystal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/manastech/crystal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/manastech/crystal/git/refs{/sha}","trees_url":"https://api.github.com/repos/manastech/crystal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/manastech/crystal/statuses/{sha}","languages_url":"https://api.github.com/repos/manastech/crystal/languages","stargazers_url":"https://api.github.com/repos/manastech/crystal/stargazers","contributors_url":"https://api.github.com/repos/manastech/crystal/contributors","subscribers_url":"https://api.github.com/repos/manastech/crystal/subscribers","subscription_url":"https://api.github.com/repos/manastech/crystal/subscription","commits_url":"https://api.github.com/repos/manastech/crystal/commits{/sha}","git_commits_url":"https://api.github.com/repos/manastech/crystal/git/commits{/sha}","comments_url":"https://api.github.com/repos/manastech/crystal/comments{/number}","issue_comment_url":"https://api.github.com/repos/manastech/crystal/issues/comments{/number}","contents_url":"https://api.github.com/repos/manastech/crystal/contents/{+path}","compare_url":"https://api.github.com/repos/manastech/crystal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/manastech/crystal/merges","archive_url":"https://api.github.com/repos/manastech/crystal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/manastech/crystal/downloads","issues_url":"https://api.github.com/repos/manastech/crystal/issues{/number}","pulls_url":"https://api.github.com/repos/manastech/crystal/pulls{/number}","milestones_url":"https://api.github.com/repos/manastech/crystal/milestones{/number}","notifications_url":"https://api.github.com/repos/manastech/crystal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/manastech/crystal/labels{/name}","releases_url":"https://api.github.com/repos/manastech/crystal/releases{/id}","created_at":"2012-11-27T17:32:32Z","updated_at":"2015-10-18T11:09:41Z","pushed_at":"2015-10-18T12:37:02Z","git_url":"git://github.com/manastech/crystal.git","ssh_url":"git@github.com:manastech/crystal.git","clone_url":"https://github.com/manastech/crystal.git","svn_url":"https://github.com/manastech/crystal","homepage":"http://crystal-lang.org","size":48042,"stargazers_count":3536,"watchers_count":3536,"language":"Crystal","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":270,"mirror_url":null,"open_issues_count":235,"forks":270,"open_issues":235,"watchers":3536,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/manastech/crystal/pulls/1770"},"html":{"href":"https://github.com/manastech/crystal/pull/1770"},"issue":{"href":"https://api.github.com/repos/manastech/crystal/issues/1770"},"comments":{"href":"https://api.github.com/repos/manastech/crystal/issues/1770/comments"},"review_comments":{"href":"https://api.github.com/repos/manastech/crystal/pulls/1770/comments"},"review_comment":{"href":"https://api.github.com/repos/manastech/crystal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/manastech/crystal/pulls/1770/commits"},"statuses":{"href":"https://api.github.com/repos/manastech/crystal/statuses/292df6397719a89e2c5e87c2ca8e05b4b36329ec"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jhass","id":141294,"avatar_url":"https://avatars.githubusercontent.com/u/141294?v=3","gravatar_id":"","url":"https://api.github.com/users/jhass","html_url":"https://github.com/jhass","followers_url":"https://api.github.com/users/jhass/followers","following_url":"https://api.github.com/users/jhass/following{/other_user}","gists_url":"https://api.github.com/users/jhass/gists{/gist_id}","starred_url":"https://api.github.com/users/jhass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhass/subscriptions","organizations_url":"https://api.github.com/users/jhass/orgs","repos_url":"https://api.github.com/users/jhass/repos","events_url":"https://api.github.com/users/jhass/events{/privacy}","received_events_url":"https://api.github.com/users/jhass/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":1,"additions":4,"deletions":4,"changed_files":1}}