{"action":"created","comment":{"url":"https://api.github.com/repos/exercism/cli/pulls/comments/46472733","id":46472733,"diff_hunk":"@@ -57,6 +59,36 @@ func (hw *Homework) Save() error {\n \treturn nil\n }\n \n+// SaveAfterFetch filters out problems for tracks the user has yet to start\n+// before saving them all to disk.\n+func (hw *Homework) SaveAfterFetch(numArgs int) error {\n+\thw.RejectUnstartedTracks(numArgs)\n+\tif len(hw.Items) == 0 {\n+\t\tfmt.Println(`\n+You have yet to start a language track!\n+View all available language tracks with \"exercism tracks\"\n+Fetch exercises for your first track with \"exercism fetch LANGUAGE\"`)\n+\t}\n+\treturn hw.Save()\n+}\n+\n+// RejectUnstartedTracks removes any items that are part of tracks the user\n+// has yet to start and doesn't have a folder for on their local machine. This\n+// only happens when a user calls `exercism fetch` without any arguments.\n+func (hw *Homework) RejectUnstartedTracks(numArgs int) {","path":"user/homework.go","position":29,"original_position":29,"commit_id":"b9a6d39538881b531b82da32f467c88915d58e86","original_commit_id":"b9a6d39538881b531b82da32f467c88915d58e86","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":"The thing about _is called without args_ is that it doesn't say what it _means_ to be fetched without args.","created_at":"2015-12-02T20:46:32Z","updated_at":"2015-12-02T20:46:32Z","html_url":"https://github.com/exercism/cli/pull/258#discussion_r46472733","pull_request_url":"https://api.github.com/repos/exercism/cli/pulls/258","_links":{"self":{"href":"https://api.github.com/repos/exercism/cli/pulls/comments/46472733"},"html":{"href":"https://github.com/exercism/cli/pull/258#discussion_r46472733"},"pull_request":{"href":"https://api.github.com/repos/exercism/cli/pulls/258"}}},"pull_request":{"url":"https://api.github.com/repos/exercism/cli/pulls/258","id":52263709,"html_url":"https://github.com/exercism/cli/pull/258","diff_url":"https://github.com/exercism/cli/pull/258.diff","patch_url":"https://github.com/exercism/cli/pull/258.patch","issue_url":"https://api.github.com/repos/exercism/cli/issues/258","number":258,"state":"open","locked":false,"title":"Changes `exercism fetch` behavior to remove filesystem noise","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 commit changes the behavior of `exercism fetch` when called without any arguments. Instead of fetching and writing exercises for all tracks, it will now fetch and update only tracks for which the user has folders in their local environment. If a user calls `exercism fetch` without having any language tracks in their exercises folder, a prompt is shown to the user to tell them how to list all available tracks and how to fetch their first track for a language of their choice.","created_at":"2015-12-01T14:26:03Z","updated_at":"2015-12-02T20:46:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d396c466bb1d2520aab536156c9d4cf5cff1b001","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/exercism/cli/pulls/258/commits","review_comments_url":"https://api.github.com/repos/exercism/cli/pulls/258/comments","review_comment_url":"https://api.github.com/repos/exercism/cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/exercism/cli/issues/258/comments","statuses_url":"https://api.github.com/repos/exercism/cli/statuses/b9a6d39538881b531b82da32f467c88915d58e86","head":{"label":"devonestes:updating-fetch-behavior","ref":"updating-fetch-behavior","sha":"b9a6d39538881b531b82da32f467c88915d58e86","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-12-02T14:39:41Z","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":1942,"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":"9641e3788f15324466fcc64a2da24b619549d287","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-12-02T07:22:15Z","pushed_at":"2015-12-02T14:43:12Z","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":3999,"stargazers_count":269,"watchers_count":269,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":110,"mirror_url":null,"open_issues_count":17,"forks":110,"open_issues":17,"watchers":269,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/exercism/cli/pulls/258"},"html":{"href":"https://github.com/exercism/cli/pull/258"},"issue":{"href":"https://api.github.com/repos/exercism/cli/issues/258"},"comments":{"href":"https://api.github.com/repos/exercism/cli/issues/258/comments"},"review_comments":{"href":"https://api.github.com/repos/exercism/cli/pulls/258/comments"},"review_comment":{"href":"https://api.github.com/repos/exercism/cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/exercism/cli/pulls/258/commits"},"statuses":{"href":"https://api.github.com/repos/exercism/cli/statuses/b9a6d39538881b531b82da32f467c88915d58e86"}}}}