{"action":"created","comment":{"url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/pulls/comments/69513384","id":69513384,"diff_hunk":"@@ -9,17 +14,147 @@ object DiaryCLI {\n   }\n \n   def run(args: Array[String]): Int = {\n-    // TODO: implement\n-    help()\n+    Context.setup(\"db.default\")\n+    implicit val ctx = Context.createContext()\n+    val userName = \"test\"\n+    val app = new DiaryApp(userName)\n+\n+    args.toList match {\n+      case \"blog\" :: \"add\" :: title :: Nil => addBlog(app, title)\n+      case \"blog\" :: \"list\" :: Nil => showBlogs(app)\n+      case \"blog\" :: blogname :: \"add\" :: title :: content :: Nil => addEntry(app, blogname, title, content)\n+      case \"blog\" :: \"delete\" :: blogname :: Nil => deleteBlog(app, blogname)\n+      case \"blog\" :: blogname :: \"list\" :: Nil => showEntries(app, blogname)","path":"src/main/scala/interndiary/cli/DiaryCLI.scala","position":null,"original_position":27,"commit_id":"f1976e52f10bff3f66689a70252b98b4b14eb2c4","original_commit_id":"cd990d1183ac1ffb2cc6c8770c04a98fd96bdfb2","user":{"login":"tanishiking","id":9353584,"avatar_url":"https://avatars.githubusercontent.com/u/9353584?v=3","gravatar_id":"","url":"https://api.github.com/users/tanishiking","html_url":"https://github.com/tanishiking","followers_url":"https://api.github.com/users/tanishiking/followers","following_url":"https://api.github.com/users/tanishiking/following{/other_user}","gists_url":"https://api.github.com/users/tanishiking/gists{/gist_id}","starred_url":"https://api.github.com/users/tanishiking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanishiking/subscriptions","organizations_url":"https://api.github.com/users/tanishiking/orgs","repos_url":"https://api.github.com/users/tanishiking/repos","events_url":"https://api.github.com/users/tanishiking/events{/privacy}","received_events_url":"https://api.github.com/users/tanishiking/received_events","type":"User","site_admin":false},"body":"> ニッチケースですが delete と list という名前の二つのブログを作ると\r\n\r\n盲点でした...!\r\nこんな感じで修正しました a812789","created_at":"2016-07-05T06:42:44Z","updated_at":"2016-07-05T06:42:44Z","html_url":"https://github.com/tanishiking/scala-Intern-Diary/pull/2#discussion_r69513384","pull_request_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/pulls/comments/69513384"},"html":{"href":"https://github.com/tanishiking/scala-Intern-Diary/pull/2#discussion_r69513384"},"pull_request":{"href":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/pulls/2","id":74584852,"html_url":"https://github.com/tanishiking/scala-Intern-Diary/pull/2","diff_url":"https://github.com/tanishiking/scala-Intern-Diary/pull/2.diff","patch_url":"https://github.com/tanishiking/scala-Intern-Diary/pull/2.patch","issue_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/issues/2","number":2,"state":"open","locked":false,"title":"課題2(やり直し)","user":{"login":"tanishiking","id":9353584,"avatar_url":"https://avatars.githubusercontent.com/u/9353584?v=3","gravatar_id":"","url":"https://api.github.com/users/tanishiking","html_url":"https://github.com/tanishiking","followers_url":"https://api.github.com/users/tanishiking/followers","following_url":"https://api.github.com/users/tanishiking/following{/other_user}","gists_url":"https://api.github.com/users/tanishiking/gists{/gist_id}","starred_url":"https://api.github.com/users/tanishiking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanishiking/subscriptions","organizations_url":"https://api.github.com/users/tanishiking/orgs","repos_url":"https://api.github.com/users/tanishiking/repos","events_url":"https://api.github.com/users/tanishiking/events{/privacy}","received_events_url":"https://api.github.com/users/tanishiking/received_events","type":"User","site_admin":false},"body":"今度こそintern-diary作ってます","created_at":"2016-06-21T10:13:29Z","updated_at":"2016-07-05T06:42:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7bfe344472916e83ef29db6f14ef9ea757c03588","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/pulls/2/commits","review_comments_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/pulls/2/comments","review_comment_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/issues/2/comments","statuses_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/statuses/f1976e52f10bff3f66689a70252b98b4b14eb2c4","head":{"label":"tanishiking:kadai2-ex","ref":"kadai2-ex","sha":"f1976e52f10bff3f66689a70252b98b4b14eb2c4","user":{"login":"tanishiking","id":9353584,"avatar_url":"https://avatars.githubusercontent.com/u/9353584?v=3","gravatar_id":"","url":"https://api.github.com/users/tanishiking","html_url":"https://github.com/tanishiking","followers_url":"https://api.github.com/users/tanishiking/followers","following_url":"https://api.github.com/users/tanishiking/following{/other_user}","gists_url":"https://api.github.com/users/tanishiking/gists{/gist_id}","starred_url":"https://api.github.com/users/tanishiking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanishiking/subscriptions","organizations_url":"https://api.github.com/users/tanishiking/orgs","repos_url":"https://api.github.com/users/tanishiking/repos","events_url":"https://api.github.com/users/tanishiking/events{/privacy}","received_events_url":"https://api.github.com/users/tanishiking/received_events","type":"User","site_admin":false},"repo":{"id":61093171,"name":"scala-Intern-Diary","full_name":"tanishiking/scala-Intern-Diary","owner":{"login":"tanishiking","id":9353584,"avatar_url":"https://avatars.githubusercontent.com/u/9353584?v=3","gravatar_id":"","url":"https://api.github.com/users/tanishiking","html_url":"https://github.com/tanishiking","followers_url":"https://api.github.com/users/tanishiking/followers","following_url":"https://api.github.com/users/tanishiking/following{/other_user}","gists_url":"https://api.github.com/users/tanishiking/gists{/gist_id}","starred_url":"https://api.github.com/users/tanishiking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanishiking/subscriptions","organizations_url":"https://api.github.com/users/tanishiking/orgs","repos_url":"https://api.github.com/users/tanishiking/repos","events_url":"https://api.github.com/users/tanishiking/events{/privacy}","received_events_url":"https://api.github.com/users/tanishiking/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tanishiking/scala-Intern-Diary","description":"はてな教科書課題ひな形","fork":true,"url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary","forks_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/forks","keys_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/teams","hooks_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/hooks","issue_events_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/issues/events{/number}","events_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/events","assignees_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/assignees{/user}","branches_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/branches{/branch}","tags_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/tags","blobs_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/git/refs{/sha}","trees_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/statuses/{sha}","languages_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/languages","stargazers_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/stargazers","contributors_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/contributors","subscribers_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/subscribers","subscription_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/subscription","commits_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/commits{/sha}","git_commits_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/git/commits{/sha}","comments_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/comments{/number}","issue_comment_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/issues/comments{/number}","contents_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/contents/{+path}","compare_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/merges","archive_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/downloads","issues_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/issues{/number}","pulls_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/pulls{/number}","milestones_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/milestones{/number}","notifications_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/labels{/name}","releases_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/releases{/id}","deployments_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/deployments","created_at":"2016-06-14T05:04:22Z","updated_at":"2016-06-14T05:04:23Z","pushed_at":"2016-07-05T06:05:05Z","git_url":"git://github.com/tanishiking/scala-Intern-Diary.git","ssh_url":"git@github.com:tanishiking/scala-Intern-Diary.git","clone_url":"https://github.com/tanishiking/scala-Intern-Diary.git","svn_url":"https://github.com/tanishiking/scala-Intern-Diary","homepage":"https://github.com/hatena/Hatena-Textbook","size":96,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"tanishiking:master","ref":"master","sha":"8dec98337c92e7648f73389d68966d1816b7a258","user":{"login":"tanishiking","id":9353584,"avatar_url":"https://avatars.githubusercontent.com/u/9353584?v=3","gravatar_id":"","url":"https://api.github.com/users/tanishiking","html_url":"https://github.com/tanishiking","followers_url":"https://api.github.com/users/tanishiking/followers","following_url":"https://api.github.com/users/tanishiking/following{/other_user}","gists_url":"https://api.github.com/users/tanishiking/gists{/gist_id}","starred_url":"https://api.github.com/users/tanishiking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanishiking/subscriptions","organizations_url":"https://api.github.com/users/tanishiking/orgs","repos_url":"https://api.github.com/users/tanishiking/repos","events_url":"https://api.github.com/users/tanishiking/events{/privacy}","received_events_url":"https://api.github.com/users/tanishiking/received_events","type":"User","site_admin":false},"repo":{"id":61093171,"name":"scala-Intern-Diary","full_name":"tanishiking/scala-Intern-Diary","owner":{"login":"tanishiking","id":9353584,"avatar_url":"https://avatars.githubusercontent.com/u/9353584?v=3","gravatar_id":"","url":"https://api.github.com/users/tanishiking","html_url":"https://github.com/tanishiking","followers_url":"https://api.github.com/users/tanishiking/followers","following_url":"https://api.github.com/users/tanishiking/following{/other_user}","gists_url":"https://api.github.com/users/tanishiking/gists{/gist_id}","starred_url":"https://api.github.com/users/tanishiking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanishiking/subscriptions","organizations_url":"https://api.github.com/users/tanishiking/orgs","repos_url":"https://api.github.com/users/tanishiking/repos","events_url":"https://api.github.com/users/tanishiking/events{/privacy}","received_events_url":"https://api.github.com/users/tanishiking/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tanishiking/scala-Intern-Diary","description":"はてな教科書課題ひな形","fork":true,"url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary","forks_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/forks","keys_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/teams","hooks_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/hooks","issue_events_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/issues/events{/number}","events_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/events","assignees_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/assignees{/user}","branches_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/branches{/branch}","tags_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/tags","blobs_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/git/refs{/sha}","trees_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/statuses/{sha}","languages_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/languages","stargazers_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/stargazers","contributors_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/contributors","subscribers_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/subscribers","subscription_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/subscription","commits_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/commits{/sha}","git_commits_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/git/commits{/sha}","comments_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/comments{/number}","issue_comment_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/issues/comments{/number}","contents_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/contents/{+path}","compare_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/merges","archive_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/downloads","issues_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/issues{/number}","pulls_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/pulls{/number}","milestones_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/milestones{/number}","notifications_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/labels{/name}","releases_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/releases{/id}","deployments_url":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/deployments","created_at":"2016-06-14T05:04:22Z","updated_at":"2016-06-14T05:04:23Z","pushed_at":"2016-07-05T06:05:05Z","git_url":"git://github.com/tanishiking/scala-Intern-Diary.git","ssh_url":"git@github.com:tanishiking/scala-Intern-Diary.git","clone_url":"https://github.com/tanishiking/scala-Intern-Diary.git","svn_url":"https://github.com/tanishiking/scala-Intern-Diary","homepage":"https://github.com/hatena/Hatena-Textbook","size":96,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/pulls/2"},"html":{"href":"https://github.com/tanishiking/scala-Intern-Diary/pull/2"},"issue":{"href":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/issues/2"},"comments":{"href":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/tanishiking/scala-Intern-Diary/statuses/f1976e52f10bff3f66689a70252b98b4b14eb2c4"}}}}
{"actor":{"display_login":"tanishiking"}}