{"action":"created","comment":{"url":"https://api.github.com/repos/sosuke-k/hyena/pulls/comments/33872439","id":33872439,"diff_hunk":"@@ -76,23 +76,44 @@ func hyenaLs(c *cli.Context) {\n \thyenaLogger.Println(\"finished ls command\")\n }\n \n-func hyenaAdd(c *cli.Context) {\n-\thyenaLogger := logger.GetInstance()\n-\thyenaLogger.Println(\"to run add command\")\n+func hyenaExecWithProject(c *cli.Context) {\n+\tcmd := c.Command.Name\n \tname := c.Args().First()\n+\thyenaLogger := logger.GetInstance()\n+\thyenaLogger.Println(\"to run \" + cmd + \" command\")\n \tif name == \"\" {\n \t\thyenaLogger.Println(\"scan empty as input\")\n \t\tprintln(\"please input project name\")\n \t} else {\n \t\thyenaLogger.Println(\"scan \" + name + \" as input\")\n-\t\tpm.Add(configPath, name)\n-\t\tprintln(\"created new project named \" + name)\n-\t\tgit.Init(path.Join(hyenaPath, name))\n+\t\tswitch cmd {","path":"hyena.go","position":20,"original_position":20,"commit_id":"de6a7233cb79ebbc723857f55b4ae1e1dab0e2fc","original_commit_id":"de6a7233cb79ebbc723857f55b4ae1e1dab0e2fc","user":{"login":"rooa","id":2957582,"avatar_url":"https://avatars.githubusercontent.com/u/2957582?v=3","gravatar_id":"","url":"https://api.github.com/users/rooa","html_url":"https://github.com/rooa","followers_url":"https://api.github.com/users/rooa/followers","following_url":"https://api.github.com/users/rooa/following{/other_user}","gists_url":"https://api.github.com/users/rooa/gists{/gist_id}","starred_url":"https://api.github.com/users/rooa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rooa/subscriptions","organizations_url":"https://api.github.com/users/rooa/orgs","repos_url":"https://api.github.com/users/rooa/repos","events_url":"https://api.github.com/users/rooa/events{/privacy}","received_events_url":"https://api.github.com/users/rooa/received_events","type":"User","site_admin":false},"body":"差分の出方がすごいw\r\n","created_at":"2015-07-03T16:05:29Z","updated_at":"2015-07-03T16:05:29Z","html_url":"https://github.com/sosuke-k/hyena/pull/64#discussion_r33872439","pull_request_url":"https://api.github.com/repos/sosuke-k/hyena/pulls/64","_links":{"self":{"href":"https://api.github.com/repos/sosuke-k/hyena/pulls/comments/33872439"},"html":{"href":"https://github.com/sosuke-k/hyena/pull/64#discussion_r33872439"},"pull_request":{"href":"https://api.github.com/repos/sosuke-k/hyena/pulls/64"}}},"pull_request":{"url":"https://api.github.com/repos/sosuke-k/hyena/pulls/64","id":39179124,"html_url":"https://github.com/sosuke-k/hyena/pull/64","diff_url":"https://github.com/sosuke-k/hyena/pull/64.diff","patch_url":"https://github.com/sosuke-k/hyena/pull/64.patch","issue_url":"https://api.github.com/repos/sosuke-k/hyena/issues/64","number":64,"state":"open","locked":false,"title":"delete コマンドの実装","user":{"login":"sosuke-k","id":4187224,"avatar_url":"https://avatars.githubusercontent.com/u/4187224?v=3","gravatar_id":"","url":"https://api.github.com/users/sosuke-k","html_url":"https://github.com/sosuke-k","followers_url":"https://api.github.com/users/sosuke-k/followers","following_url":"https://api.github.com/users/sosuke-k/following{/other_user}","gists_url":"https://api.github.com/users/sosuke-k/gists{/gist_id}","starred_url":"https://api.github.com/users/sosuke-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sosuke-k/subscriptions","organizations_url":"https://api.github.com/users/sosuke-k/orgs","repos_url":"https://api.github.com/users/sosuke-k/repos","events_url":"https://api.github.com/users/sosuke-k/events{/privacy}","received_events_url":"https://api.github.com/users/sosuke-k/received_events","type":"User","site_admin":false},"body":"## Why\r\n\r\n* プロジェクトが削除できなかった\r\n\r\n## How\r\n\r\n* `hyena delete project_name` コマンドの実装\r\n* add/delete/save/resotre など、引数にプロジェクト名をとるコマンドの共通部分を `hyenaExecWithProject` 関数でまとめた\r\n* `README.md` に追記\r\n* `completion` フォルダ内の `bash/zsh/fish` 用のやつにも追記\r\n","created_at":"2015-07-03T14:23:16Z","updated_at":"2015-07-03T16:05:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"673f8678e917bff10ace9a345f915780fc4b696c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sosuke-k/hyena/pulls/64/commits","review_comments_url":"https://api.github.com/repos/sosuke-k/hyena/pulls/64/comments","review_comment_url":"https://api.github.com/repos/sosuke-k/hyena/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sosuke-k/hyena/issues/64/comments","statuses_url":"https://api.github.com/repos/sosuke-k/hyena/statuses/de6a7233cb79ebbc723857f55b4ae1e1dab0e2fc","head":{"label":"sosuke-k:sosuke-k/delete","ref":"sosuke-k/delete","sha":"de6a7233cb79ebbc723857f55b4ae1e1dab0e2fc","user":{"login":"sosuke-k","id":4187224,"avatar_url":"https://avatars.githubusercontent.com/u/4187224?v=3","gravatar_id":"","url":"https://api.github.com/users/sosuke-k","html_url":"https://github.com/sosuke-k","followers_url":"https://api.github.com/users/sosuke-k/followers","following_url":"https://api.github.com/users/sosuke-k/following{/other_user}","gists_url":"https://api.github.com/users/sosuke-k/gists{/gist_id}","starred_url":"https://api.github.com/users/sosuke-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sosuke-k/subscriptions","organizations_url":"https://api.github.com/users/sosuke-k/orgs","repos_url":"https://api.github.com/users/sosuke-k/repos","events_url":"https://api.github.com/users/sosuke-k/events{/privacy}","received_events_url":"https://api.github.com/users/sosuke-k/received_events","type":"User","site_admin":false},"repo":{"id":37569902,"name":"hyena","full_name":"sosuke-k/hyena","owner":{"login":"sosuke-k","id":4187224,"avatar_url":"https://avatars.githubusercontent.com/u/4187224?v=3","gravatar_id":"","url":"https://api.github.com/users/sosuke-k","html_url":"https://github.com/sosuke-k","followers_url":"https://api.github.com/users/sosuke-k/followers","following_url":"https://api.github.com/users/sosuke-k/following{/other_user}","gists_url":"https://api.github.com/users/sosuke-k/gists{/gist_id}","starred_url":"https://api.github.com/users/sosuke-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sosuke-k/subscriptions","organizations_url":"https://api.github.com/users/sosuke-k/orgs","repos_url":"https://api.github.com/users/sosuke-k/repos","events_url":"https://api.github.com/users/sosuke-k/events{/privacy}","received_events_url":"https://api.github.com/users/sosuke-k/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sosuke-k/hyena","description":"","fork":false,"url":"https://api.github.com/repos/sosuke-k/hyena","forks_url":"https://api.github.com/repos/sosuke-k/hyena/forks","keys_url":"https://api.github.com/repos/sosuke-k/hyena/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sosuke-k/hyena/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sosuke-k/hyena/teams","hooks_url":"https://api.github.com/repos/sosuke-k/hyena/hooks","issue_events_url":"https://api.github.com/repos/sosuke-k/hyena/issues/events{/number}","events_url":"https://api.github.com/repos/sosuke-k/hyena/events","assignees_url":"https://api.github.com/repos/sosuke-k/hyena/assignees{/user}","branches_url":"https://api.github.com/repos/sosuke-k/hyena/branches{/branch}","tags_url":"https://api.github.com/repos/sosuke-k/hyena/tags","blobs_url":"https://api.github.com/repos/sosuke-k/hyena/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sosuke-k/hyena/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sosuke-k/hyena/git/refs{/sha}","trees_url":"https://api.github.com/repos/sosuke-k/hyena/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sosuke-k/hyena/statuses/{sha}","languages_url":"https://api.github.com/repos/sosuke-k/hyena/languages","stargazers_url":"https://api.github.com/repos/sosuke-k/hyena/stargazers","contributors_url":"https://api.github.com/repos/sosuke-k/hyena/contributors","subscribers_url":"https://api.github.com/repos/sosuke-k/hyena/subscribers","subscription_url":"https://api.github.com/repos/sosuke-k/hyena/subscription","commits_url":"https://api.github.com/repos/sosuke-k/hyena/commits{/sha}","git_commits_url":"https://api.github.com/repos/sosuke-k/hyena/git/commits{/sha}","comments_url":"https://api.github.com/repos/sosuke-k/hyena/comments{/number}","issue_comment_url":"https://api.github.com/repos/sosuke-k/hyena/issues/comments{/number}","contents_url":"https://api.github.com/repos/sosuke-k/hyena/contents/{+path}","compare_url":"https://api.github.com/repos/sosuke-k/hyena/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sosuke-k/hyena/merges","archive_url":"https://api.github.com/repos/sosuke-k/hyena/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sosuke-k/hyena/downloads","issues_url":"https://api.github.com/repos/sosuke-k/hyena/issues{/number}","pulls_url":"https://api.github.com/repos/sosuke-k/hyena/pulls{/number}","milestones_url":"https://api.github.com/repos/sosuke-k/hyena/milestones{/number}","notifications_url":"https://api.github.com/repos/sosuke-k/hyena/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sosuke-k/hyena/labels{/name}","releases_url":"https://api.github.com/repos/sosuke-k/hyena/releases{/id}","created_at":"2015-06-17T03:17:33Z","updated_at":"2015-06-27T18:10:12Z","pushed_at":"2015-07-03T14:30:47Z","git_url":"git://github.com/sosuke-k/hyena.git","ssh_url":"git@github.com:sosuke-k/hyena.git","clone_url":"https://github.com/sosuke-k/hyena.git","svn_url":"https://github.com/sosuke-k/hyena","homepage":null,"size":6284,"stargazers_count":1,"watchers_count":1,"language":"Go","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":"sosuke-k:master","ref":"master","sha":"a94b0419acd80fe21ff01be2621ce3df92ceb22f","user":{"login":"sosuke-k","id":4187224,"avatar_url":"https://avatars.githubusercontent.com/u/4187224?v=3","gravatar_id":"","url":"https://api.github.com/users/sosuke-k","html_url":"https://github.com/sosuke-k","followers_url":"https://api.github.com/users/sosuke-k/followers","following_url":"https://api.github.com/users/sosuke-k/following{/other_user}","gists_url":"https://api.github.com/users/sosuke-k/gists{/gist_id}","starred_url":"https://api.github.com/users/sosuke-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sosuke-k/subscriptions","organizations_url":"https://api.github.com/users/sosuke-k/orgs","repos_url":"https://api.github.com/users/sosuke-k/repos","events_url":"https://api.github.com/users/sosuke-k/events{/privacy}","received_events_url":"https://api.github.com/users/sosuke-k/received_events","type":"User","site_admin":false},"repo":{"id":37569902,"name":"hyena","full_name":"sosuke-k/hyena","owner":{"login":"sosuke-k","id":4187224,"avatar_url":"https://avatars.githubusercontent.com/u/4187224?v=3","gravatar_id":"","url":"https://api.github.com/users/sosuke-k","html_url":"https://github.com/sosuke-k","followers_url":"https://api.github.com/users/sosuke-k/followers","following_url":"https://api.github.com/users/sosuke-k/following{/other_user}","gists_url":"https://api.github.com/users/sosuke-k/gists{/gist_id}","starred_url":"https://api.github.com/users/sosuke-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sosuke-k/subscriptions","organizations_url":"https://api.github.com/users/sosuke-k/orgs","repos_url":"https://api.github.com/users/sosuke-k/repos","events_url":"https://api.github.com/users/sosuke-k/events{/privacy}","received_events_url":"https://api.github.com/users/sosuke-k/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sosuke-k/hyena","description":"","fork":false,"url":"https://api.github.com/repos/sosuke-k/hyena","forks_url":"https://api.github.com/repos/sosuke-k/hyena/forks","keys_url":"https://api.github.com/repos/sosuke-k/hyena/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sosuke-k/hyena/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sosuke-k/hyena/teams","hooks_url":"https://api.github.com/repos/sosuke-k/hyena/hooks","issue_events_url":"https://api.github.com/repos/sosuke-k/hyena/issues/events{/number}","events_url":"https://api.github.com/repos/sosuke-k/hyena/events","assignees_url":"https://api.github.com/repos/sosuke-k/hyena/assignees{/user}","branches_url":"https://api.github.com/repos/sosuke-k/hyena/branches{/branch}","tags_url":"https://api.github.com/repos/sosuke-k/hyena/tags","blobs_url":"https://api.github.com/repos/sosuke-k/hyena/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sosuke-k/hyena/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sosuke-k/hyena/git/refs{/sha}","trees_url":"https://api.github.com/repos/sosuke-k/hyena/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sosuke-k/hyena/statuses/{sha}","languages_url":"https://api.github.com/repos/sosuke-k/hyena/languages","stargazers_url":"https://api.github.com/repos/sosuke-k/hyena/stargazers","contributors_url":"https://api.github.com/repos/sosuke-k/hyena/contributors","subscribers_url":"https://api.github.com/repos/sosuke-k/hyena/subscribers","subscription_url":"https://api.github.com/repos/sosuke-k/hyena/subscription","commits_url":"https://api.github.com/repos/sosuke-k/hyena/commits{/sha}","git_commits_url":"https://api.github.com/repos/sosuke-k/hyena/git/commits{/sha}","comments_url":"https://api.github.com/repos/sosuke-k/hyena/comments{/number}","issue_comment_url":"https://api.github.com/repos/sosuke-k/hyena/issues/comments{/number}","contents_url":"https://api.github.com/repos/sosuke-k/hyena/contents/{+path}","compare_url":"https://api.github.com/repos/sosuke-k/hyena/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sosuke-k/hyena/merges","archive_url":"https://api.github.com/repos/sosuke-k/hyena/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sosuke-k/hyena/downloads","issues_url":"https://api.github.com/repos/sosuke-k/hyena/issues{/number}","pulls_url":"https://api.github.com/repos/sosuke-k/hyena/pulls{/number}","milestones_url":"https://api.github.com/repos/sosuke-k/hyena/milestones{/number}","notifications_url":"https://api.github.com/repos/sosuke-k/hyena/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sosuke-k/hyena/labels{/name}","releases_url":"https://api.github.com/repos/sosuke-k/hyena/releases{/id}","created_at":"2015-06-17T03:17:33Z","updated_at":"2015-06-27T18:10:12Z","pushed_at":"2015-07-03T14:30:47Z","git_url":"git://github.com/sosuke-k/hyena.git","ssh_url":"git@github.com:sosuke-k/hyena.git","clone_url":"https://github.com/sosuke-k/hyena.git","svn_url":"https://github.com/sosuke-k/hyena","homepage":null,"size":6284,"stargazers_count":1,"watchers_count":1,"language":"Go","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/sosuke-k/hyena/pulls/64"},"html":{"href":"https://github.com/sosuke-k/hyena/pull/64"},"issue":{"href":"https://api.github.com/repos/sosuke-k/hyena/issues/64"},"comments":{"href":"https://api.github.com/repos/sosuke-k/hyena/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/sosuke-k/hyena/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/sosuke-k/hyena/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sosuke-k/hyena/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/sosuke-k/hyena/statuses/de6a7233cb79ebbc723857f55b4ae1e1dab0e2fc"}}}}