{"action":"created","comment":{"url":"https://api.github.com/repos/exercism/cli/pulls/comments/43828659","id":43828659,"diff_hunk":"@@ -47,13 +47,12 @@ func (c *Client) Fetch(args []string) ([]*Problem, error) {\n \tcase 0:\n \t\turl = fmt.Sprintf(\"%s/v2/exercises?key=%s\", c.XAPIHost, c.APIKey)\n \tcase 1:\n-\t\tlanguage := args[0]\n-\t\turl = fmt.Sprintf(\"%s/v2/exercises/%s?key=%s\", c.XAPIHost, language, c.APIKey)\n+\t\ttrackID := args[0]\n+\t\turl = fmt.Sprintf(\"%s/v2/exercises/%s?key=%s\", c.XAPIHost, trackID, c.APIKey)\n \tcase 2:\n-\t\tlanguage := args[0]\n+\t\ttrackID := args[0]\n \t\tslug := args[1]\n-\t\turl = fmt.Sprintf(\"%s/v2/exercises/%s/%s\", c.XAPIHost, language, slug)\n-\tdefault:","path":"api/api.go","position":13,"original_position":13,"commit_id":"3dfbbef6abac46cb63d8619a27a355e9aad533c2","original_commit_id":"3dfbbef6abac46cb63d8619a27a355e9aad533c2","user":{"login":"kytrinyx","id":276834,"avatar_url":"https://avatars.githubusercontent.com/u/276834?v=3","gravatar_id":"","url":"https://api.github.com/users/kytrinyx","html_url":"https://github.com/kytrinyx","followers_url":"https://api.github.com/users/kytrinyx/followers","following_url":"https://api.github.com/users/kytrinyx/following{/other_user}","gists_url":"https://api.github.com/users/kytrinyx/gists{/gist_id}","starred_url":"https://api.github.com/users/kytrinyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kytrinyx/subscriptions","organizations_url":"https://api.github.com/users/kytrinyx/orgs","repos_url":"https://api.github.com/users/kytrinyx/repos","events_url":"https://api.github.com/users/kytrinyx/events{/privacy}","received_events_url":"https://api.github.com/users/kytrinyx/received_events","type":"User","site_admin":false},"body":"Was losing the `default` case intentional?","created_at":"2015-11-04T00:36:20Z","updated_at":"2015-11-04T00:36:20Z","html_url":"https://github.com/exercism/cli/pull/228#discussion_r43828659","pull_request_url":"https://api.github.com/repos/exercism/cli/pulls/228","_links":{"self":{"href":"https://api.github.com/repos/exercism/cli/pulls/comments/43828659"},"html":{"href":"https://github.com/exercism/cli/pull/228#discussion_r43828659"},"pull_request":{"href":"https://api.github.com/repos/exercism/cli/pulls/228"}}},"pull_request":{"url":"https://api.github.com/repos/exercism/cli/pulls/228","id":49322966,"html_url":"https://github.com/exercism/cli/pull/228","diff_url":"https://github.com/exercism/cli/pull/228.diff","patch_url":"https://github.com/exercism/cli/pull/228.patch","issue_url":"https://api.github.com/repos/exercism/cli/issues/228","number":228,"state":"open","locked":false,"title":"WIP - Adding `exercism status $language` command","user":{"login":"devonestes","id":8422484,"avatar_url":"https://avatars.githubusercontent.com/u/8422484?v=3","gravatar_id":"","url":"https://api.github.com/users/devonestes","html_url":"https://github.com/devonestes","followers_url":"https://api.github.com/users/devonestes/followers","following_url":"https://api.github.com/users/devonestes/following{/other_user}","gists_url":"https://api.github.com/users/devonestes/gists{/gist_id}","starred_url":"https://api.github.com/users/devonestes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devonestes/subscriptions","organizations_url":"https://api.github.com/users/devonestes/orgs","repos_url":"https://api.github.com/users/devonestes/repos","events_url":"https://api.github.com/users/devonestes/events{/privacy}","received_events_url":"https://api.github.com/users/devonestes/received_events","type":"User","site_admin":false},"body":"This is the first commit in my attempt to implement the new `status` feature as described in #223. Since this is my first time contributing to this project, I'm pushing this up now mainly to get feedback on if this is the right way to go with this feature before I go clean things up and move on to next steps. At the moment the I am basically mocking out an API response so I can make sure the command works as intended.\r\n\r\nBelow is a screenshot of the output to the user as it stands now.\r\n![status_screenshot](https://cloud.githubusercontent.com/assets/8422484/10858082/8a806306-7f52-11e5-9902-8ab9cf1c6d67.png)\r\n\r\nI'd love any feedback anyone has to offer. Specifically, I'd like to know if the API endpoint I'm looking to use looks like a good choice, if the API response format (in comments right now in `api.go` seems like a good choice, and also if there is any standardized format for outputting the information to the user that I should be using instead of the format that I have implemented now.","created_at":"2015-10-30T21:11:17Z","updated_at":"2015-11-04T00:36:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"80f45e3f8bef5cfd89ac676cb95968c066be82d7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/exercism/cli/pulls/228/commits","review_comments_url":"https://api.github.com/repos/exercism/cli/pulls/228/comments","review_comment_url":"https://api.github.com/repos/exercism/cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/exercism/cli/issues/228/comments","statuses_url":"https://api.github.com/repos/exercism/cli/statuses/3dfbbef6abac46cb63d8619a27a355e9aad533c2","head":{"label":"devonestes:adding-command-for-language-status","ref":"adding-command-for-language-status","sha":"3dfbbef6abac46cb63d8619a27a355e9aad533c2","user":{"login":"devonestes","id":8422484,"avatar_url":"https://avatars.githubusercontent.com/u/8422484?v=3","gravatar_id":"","url":"https://api.github.com/users/devonestes","html_url":"https://github.com/devonestes","followers_url":"https://api.github.com/users/devonestes/followers","following_url":"https://api.github.com/users/devonestes/following{/other_user}","gists_url":"https://api.github.com/users/devonestes/gists{/gist_id}","starred_url":"https://api.github.com/users/devonestes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devonestes/subscriptions","organizations_url":"https://api.github.com/users/devonestes/orgs","repos_url":"https://api.github.com/users/devonestes/repos","events_url":"https://api.github.com/users/devonestes/events{/privacy}","received_events_url":"https://api.github.com/users/devonestes/received_events","type":"User","site_admin":false},"repo":{"id":45067890,"name":"cli","full_name":"devonestes/cli","owner":{"login":"devonestes","id":8422484,"avatar_url":"https://avatars.githubusercontent.com/u/8422484?v=3","gravatar_id":"","url":"https://api.github.com/users/devonestes","html_url":"https://github.com/devonestes","followers_url":"https://api.github.com/users/devonestes/followers","following_url":"https://api.github.com/users/devonestes/following{/other_user}","gists_url":"https://api.github.com/users/devonestes/gists{/gist_id}","starred_url":"https://api.github.com/users/devonestes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devonestes/subscriptions","organizations_url":"https://api.github.com/users/devonestes/orgs","repos_url":"https://api.github.com/users/devonestes/repos","events_url":"https://api.github.com/users/devonestes/events{/privacy}","received_events_url":"https://api.github.com/users/devonestes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/devonestes/cli","description":"A Go based command line tool for exercism.io.","fork":true,"url":"https://api.github.com/repos/devonestes/cli","forks_url":"https://api.github.com/repos/devonestes/cli/forks","keys_url":"https://api.github.com/repos/devonestes/cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/devonestes/cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/devonestes/cli/teams","hooks_url":"https://api.github.com/repos/devonestes/cli/hooks","issue_events_url":"https://api.github.com/repos/devonestes/cli/issues/events{/number}","events_url":"https://api.github.com/repos/devonestes/cli/events","assignees_url":"https://api.github.com/repos/devonestes/cli/assignees{/user}","branches_url":"https://api.github.com/repos/devonestes/cli/branches{/branch}","tags_url":"https://api.github.com/repos/devonestes/cli/tags","blobs_url":"https://api.github.com/repos/devonestes/cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/devonestes/cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/devonestes/cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/devonestes/cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/devonestes/cli/statuses/{sha}","languages_url":"https://api.github.com/repos/devonestes/cli/languages","stargazers_url":"https://api.github.com/repos/devonestes/cli/stargazers","contributors_url":"https://api.github.com/repos/devonestes/cli/contributors","subscribers_url":"https://api.github.com/repos/devonestes/cli/subscribers","subscription_url":"https://api.github.com/repos/devonestes/cli/subscription","commits_url":"https://api.github.com/repos/devonestes/cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/devonestes/cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/devonestes/cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/devonestes/cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/devonestes/cli/contents/{+path}","compare_url":"https://api.github.com/repos/devonestes/cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/devonestes/cli/merges","archive_url":"https://api.github.com/repos/devonestes/cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/devonestes/cli/downloads","issues_url":"https://api.github.com/repos/devonestes/cli/issues{/number}","pulls_url":"https://api.github.com/repos/devonestes/cli/pulls{/number}","milestones_url":"https://api.github.com/repos/devonestes/cli/milestones{/number}","notifications_url":"https://api.github.com/repos/devonestes/cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/devonestes/cli/labels{/name}","releases_url":"https://api.github.com/repos/devonestes/cli/releases{/id}","created_at":"2015-10-27T20:25:16Z","updated_at":"2015-10-27T20:25:17Z","pushed_at":"2015-11-03T10:39:59Z","git_url":"git://github.com/devonestes/cli.git","ssh_url":"git@github.com:devonestes/cli.git","clone_url":"https://github.com/devonestes/cli.git","svn_url":"https://github.com/devonestes/cli","homepage":null,"size":1981,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"exercism:master","ref":"master","sha":"3f15b00eee03719060e605d7c880db32b2cc2c11","user":{"login":"exercism","id":5624255,"avatar_url":"https://avatars.githubusercontent.com/u/5624255?v=3","gravatar_id":"","url":"https://api.github.com/users/exercism","html_url":"https://github.com/exercism","followers_url":"https://api.github.com/users/exercism/followers","following_url":"https://api.github.com/users/exercism/following{/other_user}","gists_url":"https://api.github.com/users/exercism/gists{/gist_id}","starred_url":"https://api.github.com/users/exercism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exercism/subscriptions","organizations_url":"https://api.github.com/users/exercism/orgs","repos_url":"https://api.github.com/users/exercism/repos","events_url":"https://api.github.com/users/exercism/events{/privacy}","received_events_url":"https://api.github.com/users/exercism/received_events","type":"Organization","site_admin":false},"repo":{"id":11870975,"name":"cli","full_name":"exercism/cli","owner":{"login":"exercism","id":5624255,"avatar_url":"https://avatars.githubusercontent.com/u/5624255?v=3","gravatar_id":"","url":"https://api.github.com/users/exercism","html_url":"https://github.com/exercism","followers_url":"https://api.github.com/users/exercism/followers","following_url":"https://api.github.com/users/exercism/following{/other_user}","gists_url":"https://api.github.com/users/exercism/gists{/gist_id}","starred_url":"https://api.github.com/users/exercism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exercism/subscriptions","organizations_url":"https://api.github.com/users/exercism/orgs","repos_url":"https://api.github.com/users/exercism/repos","events_url":"https://api.github.com/users/exercism/events{/privacy}","received_events_url":"https://api.github.com/users/exercism/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/exercism/cli","description":"A Go based command line tool for exercism.io.","fork":false,"url":"https://api.github.com/repos/exercism/cli","forks_url":"https://api.github.com/repos/exercism/cli/forks","keys_url":"https://api.github.com/repos/exercism/cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/exercism/cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/exercism/cli/teams","hooks_url":"https://api.github.com/repos/exercism/cli/hooks","issue_events_url":"https://api.github.com/repos/exercism/cli/issues/events{/number}","events_url":"https://api.github.com/repos/exercism/cli/events","assignees_url":"https://api.github.com/repos/exercism/cli/assignees{/user}","branches_url":"https://api.github.com/repos/exercism/cli/branches{/branch}","tags_url":"https://api.github.com/repos/exercism/cli/tags","blobs_url":"https://api.github.com/repos/exercism/cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/exercism/cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/exercism/cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/exercism/cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/exercism/cli/statuses/{sha}","languages_url":"https://api.github.com/repos/exercism/cli/languages","stargazers_url":"https://api.github.com/repos/exercism/cli/stargazers","contributors_url":"https://api.github.com/repos/exercism/cli/contributors","subscribers_url":"https://api.github.com/repos/exercism/cli/subscribers","subscription_url":"https://api.github.com/repos/exercism/cli/subscription","commits_url":"https://api.github.com/repos/exercism/cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/exercism/cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/exercism/cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/exercism/cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/exercism/cli/contents/{+path}","compare_url":"https://api.github.com/repos/exercism/cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/exercism/cli/merges","archive_url":"https://api.github.com/repos/exercism/cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/exercism/cli/downloads","issues_url":"https://api.github.com/repos/exercism/cli/issues{/number}","pulls_url":"https://api.github.com/repos/exercism/cli/pulls{/number}","milestones_url":"https://api.github.com/repos/exercism/cli/milestones{/number}","notifications_url":"https://api.github.com/repos/exercism/cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/exercism/cli/labels{/name}","releases_url":"https://api.github.com/repos/exercism/cli/releases{/id}","created_at":"2013-08-03T23:10:38Z","updated_at":"2015-11-03T08:57:46Z","pushed_at":"2015-11-04T00:25:11Z","git_url":"git://github.com/exercism/cli.git","ssh_url":"git@github.com:exercism/cli.git","clone_url":"https://github.com/exercism/cli.git","svn_url":"https://github.com/exercism/cli","homepage":null,"size":5132,"stargazers_count":264,"watchers_count":264,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":107,"mirror_url":null,"open_issues_count":21,"forks":107,"open_issues":21,"watchers":264,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/exercism/cli/pulls/228"},"html":{"href":"https://github.com/exercism/cli/pull/228"},"issue":{"href":"https://api.github.com/repos/exercism/cli/issues/228"},"comments":{"href":"https://api.github.com/repos/exercism/cli/issues/228/comments"},"review_comments":{"href":"https://api.github.com/repos/exercism/cli/pulls/228/comments"},"review_comment":{"href":"https://api.github.com/repos/exercism/cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/exercism/cli/pulls/228/commits"},"statuses":{"href":"https://api.github.com/repos/exercism/cli/statuses/3dfbbef6abac46cb63d8619a27a355e9aad533c2"}}}}