{"action":"created","comment":{"url":"https://api.github.com/repos/CloudCoreo/cli/pulls/comments/86708961","pull_request_review_id":7352590,"id":86708961,"diff_hunk":"@@ -0,0 +1,155 @@\n+package util\n+\n+import (\n+\t\"fmt\"\n+\t\"strings\"\n+\t\"github.com/cloudcoreo/cli/cmd/content\"\n+)\n+\n+func checkFlag(flag, error string) error {\n+\tif flag == \"\" {\n+\t\treturn fmt.Errorf(error)\n+\t}\n+\n+\treturn nil\n+}\n+\n+func checkGitRepoUrl(gitRepoUrl string) error {\n+\tif gitRepoUrl == \"\" {\n+\t\treturn fmt.Errorf(\"A SSH git repo url is required: -g\")","path":"cmd/util/flags.go","position":19,"original_position":19,"commit_id":"57ff70beb6e887f50d899a4bb925eded8aebcd0b","original_commit_id":"57ff70beb6e887f50d899a4bb925eded8aebcd0b","user":{"login":"pauldallen","id":5353031,"avatar_url":"https://avatars.githubusercontent.com/u/5353031?v=3","gravatar_id":"","url":"https://api.github.com/users/pauldallen","html_url":"https://github.com/pauldallen","followers_url":"https://api.github.com/users/pauldallen/followers","following_url":"https://api.github.com/users/pauldallen/following{/other_user}","gists_url":"https://api.github.com/users/pauldallen/gists{/gist_id}","starred_url":"https://api.github.com/users/pauldallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pauldallen/subscriptions","organizations_url":"https://api.github.com/users/pauldallen/orgs","repos_url":"https://api.github.com/users/pauldallen/repos","events_url":"https://api.github.com/users/pauldallen/events{/privacy}","received_events_url":"https://api.github.com/users/pauldallen/received_events","type":"User","site_admin":false},"body":"externalize error messages ","created_at":"2016-11-07T03:20:39Z","updated_at":"2016-11-07T03:23:02Z","html_url":"https://github.com/CloudCoreo/cli/pull/11#discussion_r86708961","pull_request_url":"https://api.github.com/repos/CloudCoreo/cli/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/CloudCoreo/cli/pulls/comments/86708961"},"html":{"href":"https://github.com/CloudCoreo/cli/pull/11#discussion_r86708961"},"pull_request":{"href":"https://api.github.com/repos/CloudCoreo/cli/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/CloudCoreo/cli/pulls/11","id":92286406,"html_url":"https://github.com/CloudCoreo/cli/pull/11","diff_url":"https://github.com/CloudCoreo/cli/pull/11.diff","patch_url":"https://github.com/CloudCoreo/cli/pull/11.patch","issue_url":"https://api.github.com/repos/CloudCoreo/cli/issues/11","number":11,"state":"open","locked":false,"title":"PLA 1610 cloud cmd","user":{"login":"coolguru","id":543930,"avatar_url":"https://avatars.githubusercontent.com/u/543930?v=3","gravatar_id":"","url":"https://api.github.com/users/coolguru","html_url":"https://github.com/coolguru","followers_url":"https://api.github.com/users/coolguru/followers","following_url":"https://api.github.com/users/coolguru/following{/other_user}","gists_url":"https://api.github.com/users/coolguru/gists{/gist_id}","starred_url":"https://api.github.com/users/coolguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolguru/subscriptions","organizations_url":"https://api.github.com/users/coolguru/orgs","repos_url":"https://api.github.com/users/coolguru/repos","events_url":"https://api.github.com/users/coolguru/events{/privacy}","received_events_url":"https://api.github.com/users/coolguru/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-04T05:32:51Z","updated_at":"2016-11-07T03:23:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6fc3c331dd0d17806d547daa725eabd21e1a4838","assignee":{"login":"smattes","id":1682832,"avatar_url":"https://avatars.githubusercontent.com/u/1682832?v=3","gravatar_id":"","url":"https://api.github.com/users/smattes","html_url":"https://github.com/smattes","followers_url":"https://api.github.com/users/smattes/followers","following_url":"https://api.github.com/users/smattes/following{/other_user}","gists_url":"https://api.github.com/users/smattes/gists{/gist_id}","starred_url":"https://api.github.com/users/smattes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smattes/subscriptions","organizations_url":"https://api.github.com/users/smattes/orgs","repos_url":"https://api.github.com/users/smattes/repos","events_url":"https://api.github.com/users/smattes/events{/privacy}","received_events_url":"https://api.github.com/users/smattes/received_events","type":"User","site_admin":false},"assignees":[{"login":"smattes","id":1682832,"avatar_url":"https://avatars.githubusercontent.com/u/1682832?v=3","gravatar_id":"","url":"https://api.github.com/users/smattes","html_url":"https://github.com/smattes","followers_url":"https://api.github.com/users/smattes/followers","following_url":"https://api.github.com/users/smattes/following{/other_user}","gists_url":"https://api.github.com/users/smattes/gists{/gist_id}","starred_url":"https://api.github.com/users/smattes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smattes/subscriptions","organizations_url":"https://api.github.com/users/smattes/orgs","repos_url":"https://api.github.com/users/smattes/repos","events_url":"https://api.github.com/users/smattes/events{/privacy}","received_events_url":"https://api.github.com/users/smattes/received_events","type":"User","site_admin":false},{"login":"pauldallen","id":5353031,"avatar_url":"https://avatars.githubusercontent.com/u/5353031?v=3","gravatar_id":"","url":"https://api.github.com/users/pauldallen","html_url":"https://github.com/pauldallen","followers_url":"https://api.github.com/users/pauldallen/followers","following_url":"https://api.github.com/users/pauldallen/following{/other_user}","gists_url":"https://api.github.com/users/pauldallen/gists{/gist_id}","starred_url":"https://api.github.com/users/pauldallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pauldallen/subscriptions","organizations_url":"https://api.github.com/users/pauldallen/orgs","repos_url":"https://api.github.com/users/pauldallen/repos","events_url":"https://api.github.com/users/pauldallen/events{/privacy}","received_events_url":"https://api.github.com/users/pauldallen/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/CloudCoreo/cli/pulls/11/commits","review_comments_url":"https://api.github.com/repos/CloudCoreo/cli/pulls/11/comments","review_comment_url":"https://api.github.com/repos/CloudCoreo/cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CloudCoreo/cli/issues/11/comments","statuses_url":"https://api.github.com/repos/CloudCoreo/cli/statuses/57ff70beb6e887f50d899a4bb925eded8aebcd0b","head":{"label":"CloudCoreo:PLA-1610-cloud-cmd","ref":"PLA-1610-cloud-cmd","sha":"57ff70beb6e887f50d899a4bb925eded8aebcd0b","user":{"login":"CloudCoreo","id":7378252,"avatar_url":"https://avatars.githubusercontent.com/u/7378252?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudCoreo","html_url":"https://github.com/CloudCoreo","followers_url":"https://api.github.com/users/CloudCoreo/followers","following_url":"https://api.github.com/users/CloudCoreo/following{/other_user}","gists_url":"https://api.github.com/users/CloudCoreo/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudCoreo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudCoreo/subscriptions","organizations_url":"https://api.github.com/users/CloudCoreo/orgs","repos_url":"https://api.github.com/users/CloudCoreo/repos","events_url":"https://api.github.com/users/CloudCoreo/events{/privacy}","received_events_url":"https://api.github.com/users/CloudCoreo/received_events","type":"Organization","site_admin":false},"repo":{"id":70505971,"name":"cli","full_name":"CloudCoreo/cli","owner":{"login":"CloudCoreo","id":7378252,"avatar_url":"https://avatars.githubusercontent.com/u/7378252?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudCoreo","html_url":"https://github.com/CloudCoreo","followers_url":"https://api.github.com/users/CloudCoreo/followers","following_url":"https://api.github.com/users/CloudCoreo/following{/other_user}","gists_url":"https://api.github.com/users/CloudCoreo/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudCoreo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudCoreo/subscriptions","organizations_url":"https://api.github.com/users/CloudCoreo/orgs","repos_url":"https://api.github.com/users/CloudCoreo/repos","events_url":"https://api.github.com/users/CloudCoreo/events{/privacy}","received_events_url":"https://api.github.com/users/CloudCoreo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CloudCoreo/cli","description":null,"fork":false,"url":"https://api.github.com/repos/CloudCoreo/cli","forks_url":"https://api.github.com/repos/CloudCoreo/cli/forks","keys_url":"https://api.github.com/repos/CloudCoreo/cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CloudCoreo/cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CloudCoreo/cli/teams","hooks_url":"https://api.github.com/repos/CloudCoreo/cli/hooks","issue_events_url":"https://api.github.com/repos/CloudCoreo/cli/issues/events{/number}","events_url":"https://api.github.com/repos/CloudCoreo/cli/events","assignees_url":"https://api.github.com/repos/CloudCoreo/cli/assignees{/user}","branches_url":"https://api.github.com/repos/CloudCoreo/cli/branches{/branch}","tags_url":"https://api.github.com/repos/CloudCoreo/cli/tags","blobs_url":"https://api.github.com/repos/CloudCoreo/cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CloudCoreo/cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CloudCoreo/cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/CloudCoreo/cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CloudCoreo/cli/statuses/{sha}","languages_url":"https://api.github.com/repos/CloudCoreo/cli/languages","stargazers_url":"https://api.github.com/repos/CloudCoreo/cli/stargazers","contributors_url":"https://api.github.com/repos/CloudCoreo/cli/contributors","subscribers_url":"https://api.github.com/repos/CloudCoreo/cli/subscribers","subscription_url":"https://api.github.com/repos/CloudCoreo/cli/subscription","commits_url":"https://api.github.com/repos/CloudCoreo/cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/CloudCoreo/cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/CloudCoreo/cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/CloudCoreo/cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/CloudCoreo/cli/contents/{+path}","compare_url":"https://api.github.com/repos/CloudCoreo/cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CloudCoreo/cli/merges","archive_url":"https://api.github.com/repos/CloudCoreo/cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CloudCoreo/cli/downloads","issues_url":"https://api.github.com/repos/CloudCoreo/cli/issues{/number}","pulls_url":"https://api.github.com/repos/CloudCoreo/cli/pulls{/number}","milestones_url":"https://api.github.com/repos/CloudCoreo/cli/milestones{/number}","notifications_url":"https://api.github.com/repos/CloudCoreo/cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CloudCoreo/cli/labels{/name}","releases_url":"https://api.github.com/repos/CloudCoreo/cli/releases{/id}","deployments_url":"https://api.github.com/repos/CloudCoreo/cli/deployments","created_at":"2016-10-10T16:16:13Z","updated_at":"2016-10-10T16:16:13Z","pushed_at":"2016-11-06T23:30:44Z","git_url":"git://github.com/CloudCoreo/cli.git","ssh_url":"git@github.com:CloudCoreo/cli.git","clone_url":"https://github.com/CloudCoreo/cli.git","svn_url":"https://github.com/CloudCoreo/cli","homepage":null,"size":4366,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"CloudCoreo:dev","ref":"dev","sha":"dc3851d262b3c5d147911f6b320e2a5b4f6b0015","user":{"login":"CloudCoreo","id":7378252,"avatar_url":"https://avatars.githubusercontent.com/u/7378252?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudCoreo","html_url":"https://github.com/CloudCoreo","followers_url":"https://api.github.com/users/CloudCoreo/followers","following_url":"https://api.github.com/users/CloudCoreo/following{/other_user}","gists_url":"https://api.github.com/users/CloudCoreo/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudCoreo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudCoreo/subscriptions","organizations_url":"https://api.github.com/users/CloudCoreo/orgs","repos_url":"https://api.github.com/users/CloudCoreo/repos","events_url":"https://api.github.com/users/CloudCoreo/events{/privacy}","received_events_url":"https://api.github.com/users/CloudCoreo/received_events","type":"Organization","site_admin":false},"repo":{"id":70505971,"name":"cli","full_name":"CloudCoreo/cli","owner":{"login":"CloudCoreo","id":7378252,"avatar_url":"https://avatars.githubusercontent.com/u/7378252?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudCoreo","html_url":"https://github.com/CloudCoreo","followers_url":"https://api.github.com/users/CloudCoreo/followers","following_url":"https://api.github.com/users/CloudCoreo/following{/other_user}","gists_url":"https://api.github.com/users/CloudCoreo/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudCoreo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudCoreo/subscriptions","organizations_url":"https://api.github.com/users/CloudCoreo/orgs","repos_url":"https://api.github.com/users/CloudCoreo/repos","events_url":"https://api.github.com/users/CloudCoreo/events{/privacy}","received_events_url":"https://api.github.com/users/CloudCoreo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CloudCoreo/cli","description":null,"fork":false,"url":"https://api.github.com/repos/CloudCoreo/cli","forks_url":"https://api.github.com/repos/CloudCoreo/cli/forks","keys_url":"https://api.github.com/repos/CloudCoreo/cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CloudCoreo/cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CloudCoreo/cli/teams","hooks_url":"https://api.github.com/repos/CloudCoreo/cli/hooks","issue_events_url":"https://api.github.com/repos/CloudCoreo/cli/issues/events{/number}","events_url":"https://api.github.com/repos/CloudCoreo/cli/events","assignees_url":"https://api.github.com/repos/CloudCoreo/cli/assignees{/user}","branches_url":"https://api.github.com/repos/CloudCoreo/cli/branches{/branch}","tags_url":"https://api.github.com/repos/CloudCoreo/cli/tags","blobs_url":"https://api.github.com/repos/CloudCoreo/cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CloudCoreo/cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CloudCoreo/cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/CloudCoreo/cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CloudCoreo/cli/statuses/{sha}","languages_url":"https://api.github.com/repos/CloudCoreo/cli/languages","stargazers_url":"https://api.github.com/repos/CloudCoreo/cli/stargazers","contributors_url":"https://api.github.com/repos/CloudCoreo/cli/contributors","subscribers_url":"https://api.github.com/repos/CloudCoreo/cli/subscribers","subscription_url":"https://api.github.com/repos/CloudCoreo/cli/subscription","commits_url":"https://api.github.com/repos/CloudCoreo/cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/CloudCoreo/cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/CloudCoreo/cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/CloudCoreo/cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/CloudCoreo/cli/contents/{+path}","compare_url":"https://api.github.com/repos/CloudCoreo/cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CloudCoreo/cli/merges","archive_url":"https://api.github.com/repos/CloudCoreo/cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CloudCoreo/cli/downloads","issues_url":"https://api.github.com/repos/CloudCoreo/cli/issues{/number}","pulls_url":"https://api.github.com/repos/CloudCoreo/cli/pulls{/number}","milestones_url":"https://api.github.com/repos/CloudCoreo/cli/milestones{/number}","notifications_url":"https://api.github.com/repos/CloudCoreo/cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CloudCoreo/cli/labels{/name}","releases_url":"https://api.github.com/repos/CloudCoreo/cli/releases{/id}","deployments_url":"https://api.github.com/repos/CloudCoreo/cli/deployments","created_at":"2016-10-10T16:16:13Z","updated_at":"2016-10-10T16:16:13Z","pushed_at":"2016-11-06T23:30:44Z","git_url":"git://github.com/CloudCoreo/cli.git","ssh_url":"git@github.com:CloudCoreo/cli.git","clone_url":"https://github.com/CloudCoreo/cli.git","svn_url":"https://github.com/CloudCoreo/cli","homepage":null,"size":4366,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CloudCoreo/cli/pulls/11"},"html":{"href":"https://github.com/CloudCoreo/cli/pull/11"},"issue":{"href":"https://api.github.com/repos/CloudCoreo/cli/issues/11"},"comments":{"href":"https://api.github.com/repos/CloudCoreo/cli/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/CloudCoreo/cli/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/CloudCoreo/cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CloudCoreo/cli/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/CloudCoreo/cli/statuses/57ff70beb6e887f50d899a4bb925eded8aebcd0b"}}}}
{"actor":{"display_login":"pauldallen"}}