{"action":"created","comment":{"url":"https://api.github.com/repos/wagoodman/bashful/pulls/comments/217928590","pull_request_review_id":155758870,"id":217928590,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNzkyODU5MA==","diff_hunk":"@@ -0,0 +1,61 @@\n+package core\n+\n+import (\n+\t\"fmt\"\n+\t\"runtime\"\n+\t\"time\"\n+\t\"os\"\n+)\n+\n+func ExitWithErrorMessage(msg string) {\n+\tcleanup()\n+\tfmt.Fprintln(os.Stderr, red(msg))\n+\tos.Exit(1)\n+}\n+\n+func Exit(rc int) {\n+\tcleanup()\n+\tos.Exit(rc)\n+}\n+\n+func cleanup() {\n+\t// stop any running tasks\n+\tfor _, task := range allTasks {\n+\t\ttask.Kill()\n+\t}\n+\n+\t// move the cursor past the used screen realestate\n+\tnewScreen().MovePastFrame(true)\n+\n+\t// show the cursor again\n+\tfmt.Print(\"\\033[?25h\") // show cursor\n+}\n+\n+func CheckError(err error, message string) {","path":"core/utils.go","position":34,"original_position":34,"commit_id":"73727a0c1181ee58cbbdddd337d384043d946d5c","original_commit_id":"73727a0c1181ee58cbbdddd337d384043d946d5c","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"exported function CheckError should have comment or be unexported","created_at":"2018-09-16T21:37:07Z","updated_at":"2018-09-16T21:37:08Z","html_url":"https://github.com/wagoodman/bashful/pull/60#discussion_r217928590","pull_request_url":"https://api.github.com/repos/wagoodman/bashful/pulls/60","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/wagoodman/bashful/pulls/comments/217928590"},"html":{"href":"https://github.com/wagoodman/bashful/pull/60#discussion_r217928590"},"pull_request":{"href":"https://api.github.com/repos/wagoodman/bashful/pulls/60"}}},"pull_request":{"url":"https://api.github.com/repos/wagoodman/bashful/pulls/60","id":215846682,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1ODQ2Njgy","html_url":"https://github.com/wagoodman/bashful/pull/60","diff_url":"https://github.com/wagoodman/bashful/pull/60.diff","patch_url":"https://github.com/wagoodman/bashful/pull/60.patch","issue_url":"https://api.github.com/repos/wagoodman/bashful/issues/60","number":60,"state":"open","locked":false,"title":"Refactoring with cobra + package","user":{"login":"wagoodman","id":590471,"node_id":"MDQ6VXNlcjU5MDQ3MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/590471?v=4","gravatar_id":"","url":"https://api.github.com/users/wagoodman","html_url":"https://github.com/wagoodman","followers_url":"https://api.github.com/users/wagoodman/followers","following_url":"https://api.github.com/users/wagoodman/following{/other_user}","gists_url":"https://api.github.com/users/wagoodman/gists{/gist_id}","starred_url":"https://api.github.com/users/wagoodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wagoodman/subscriptions","organizations_url":"https://api.github.com/users/wagoodman/orgs","repos_url":"https://api.github.com/users/wagoodman/repos","events_url":"https://api.github.com/users/wagoodman/events{/privacy}","received_events_url":"https://api.github.com/users/wagoodman/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-16T21:36:55Z","updated_at":"2018-09-16T21:37:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8b5b51b0543fe66f3d7d5a59e2f207a2d16997bb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wagoodman/bashful/pulls/60/commits","review_comments_url":"https://api.github.com/repos/wagoodman/bashful/pulls/60/comments","review_comment_url":"https://api.github.com/repos/wagoodman/bashful/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wagoodman/bashful/issues/60/comments","statuses_url":"https://api.github.com/repos/wagoodman/bashful/statuses/73727a0c1181ee58cbbdddd337d384043d946d5c","head":{"label":"wagoodman:refactor-with-lib","ref":"refactor-with-lib","sha":"73727a0c1181ee58cbbdddd337d384043d946d5c","user":{"login":"wagoodman","id":590471,"node_id":"MDQ6VXNlcjU5MDQ3MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/590471?v=4","gravatar_id":"","url":"https://api.github.com/users/wagoodman","html_url":"https://github.com/wagoodman","followers_url":"https://api.github.com/users/wagoodman/followers","following_url":"https://api.github.com/users/wagoodman/following{/other_user}","gists_url":"https://api.github.com/users/wagoodman/gists{/gist_id}","starred_url":"https://api.github.com/users/wagoodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wagoodman/subscriptions","organizations_url":"https://api.github.com/users/wagoodman/orgs","repos_url":"https://api.github.com/users/wagoodman/repos","events_url":"https://api.github.com/users/wagoodman/events{/privacy}","received_events_url":"https://api.github.com/users/wagoodman/received_events","type":"User","site_admin":false},"repo":{"id":103874950,"node_id":"MDEwOlJlcG9zaXRvcnkxMDM4NzQ5NTA=","name":"bashful","full_name":"wagoodman/bashful","private":false,"owner":{"login":"wagoodman","id":590471,"node_id":"MDQ6VXNlcjU5MDQ3MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/590471?v=4","gravatar_id":"","url":"https://api.github.com/users/wagoodman","html_url":"https://github.com/wagoodman","followers_url":"https://api.github.com/users/wagoodman/followers","following_url":"https://api.github.com/users/wagoodman/following{/other_user}","gists_url":"https://api.github.com/users/wagoodman/gists{/gist_id}","starred_url":"https://api.github.com/users/wagoodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wagoodman/subscriptions","organizations_url":"https://api.github.com/users/wagoodman/orgs","repos_url":"https://api.github.com/users/wagoodman/repos","events_url":"https://api.github.com/users/wagoodman/events{/privacy}","received_events_url":"https://api.github.com/users/wagoodman/received_events","type":"User","site_admin":false},"html_url":"https://github.com/wagoodman/bashful","description":"Use a yaml file to stitch together commands and bash snippits and run them with a bit of style.  Why? Because your bash script should be quiet and shy-like (...and not such a loud mouth). ","fork":false,"url":"https://api.github.com/repos/wagoodman/bashful","forks_url":"https://api.github.com/repos/wagoodman/bashful/forks","keys_url":"https://api.github.com/repos/wagoodman/bashful/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wagoodman/bashful/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wagoodman/bashful/teams","hooks_url":"https://api.github.com/repos/wagoodman/bashful/hooks","issue_events_url":"https://api.github.com/repos/wagoodman/bashful/issues/events{/number}","events_url":"https://api.github.com/repos/wagoodman/bashful/events","assignees_url":"https://api.github.com/repos/wagoodman/bashful/assignees{/user}","branches_url":"https://api.github.com/repos/wagoodman/bashful/branches{/branch}","tags_url":"https://api.github.com/repos/wagoodman/bashful/tags","blobs_url":"https://api.github.com/repos/wagoodman/bashful/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wagoodman/bashful/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wagoodman/bashful/git/refs{/sha}","trees_url":"https://api.github.com/repos/wagoodman/bashful/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wagoodman/bashful/statuses/{sha}","languages_url":"https://api.github.com/repos/wagoodman/bashful/languages","stargazers_url":"https://api.github.com/repos/wagoodman/bashful/stargazers","contributors_url":"https://api.github.com/repos/wagoodman/bashful/contributors","subscribers_url":"https://api.github.com/repos/wagoodman/bashful/subscribers","subscription_url":"https://api.github.com/repos/wagoodman/bashful/subscription","commits_url":"https://api.github.com/repos/wagoodman/bashful/commits{/sha}","git_commits_url":"https://api.github.com/repos/wagoodman/bashful/git/commits{/sha}","comments_url":"https://api.github.com/repos/wagoodman/bashful/comments{/number}","issue_comment_url":"https://api.github.com/repos/wagoodman/bashful/issues/comments{/number}","contents_url":"https://api.github.com/repos/wagoodman/bashful/contents/{+path}","compare_url":"https://api.github.com/repos/wagoodman/bashful/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wagoodman/bashful/merges","archive_url":"https://api.github.com/repos/wagoodman/bashful/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wagoodman/bashful/downloads","issues_url":"https://api.github.com/repos/wagoodman/bashful/issues{/number}","pulls_url":"https://api.github.com/repos/wagoodman/bashful/pulls{/number}","milestones_url":"https://api.github.com/repos/wagoodman/bashful/milestones{/number}","notifications_url":"https://api.github.com/repos/wagoodman/bashful/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wagoodman/bashful/labels{/name}","releases_url":"https://api.github.com/repos/wagoodman/bashful/releases{/id}","deployments_url":"https://api.github.com/repos/wagoodman/bashful/deployments","created_at":"2017-09-18T01:04:55Z","updated_at":"2018-09-15T15:58:31Z","pushed_at":"2018-09-16T21:36:55Z","git_url":"git://github.com/wagoodman/bashful.git","ssh_url":"git@github.com:wagoodman/bashful.git","clone_url":"https://github.com/wagoodman/bashful.git","svn_url":"https://github.com/wagoodman/bashful","homepage":"","size":4109,"stargazers_count":645,"watchers_count":645,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":18,"open_issues":13,"watchers":645,"default_branch":"master"}},"base":{"label":"wagoodman:master","ref":"master","sha":"50812df1fd6ad8db7917e4ded4aea32c074fac2c","user":{"login":"wagoodman","id":590471,"node_id":"MDQ6VXNlcjU5MDQ3MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/590471?v=4","gravatar_id":"","url":"https://api.github.com/users/wagoodman","html_url":"https://github.com/wagoodman","followers_url":"https://api.github.com/users/wagoodman/followers","following_url":"https://api.github.com/users/wagoodman/following{/other_user}","gists_url":"https://api.github.com/users/wagoodman/gists{/gist_id}","starred_url":"https://api.github.com/users/wagoodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wagoodman/subscriptions","organizations_url":"https://api.github.com/users/wagoodman/orgs","repos_url":"https://api.github.com/users/wagoodman/repos","events_url":"https://api.github.com/users/wagoodman/events{/privacy}","received_events_url":"https://api.github.com/users/wagoodman/received_events","type":"User","site_admin":false},"repo":{"id":103874950,"node_id":"MDEwOlJlcG9zaXRvcnkxMDM4NzQ5NTA=","name":"bashful","full_name":"wagoodman/bashful","private":false,"owner":{"login":"wagoodman","id":590471,"node_id":"MDQ6VXNlcjU5MDQ3MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/590471?v=4","gravatar_id":"","url":"https://api.github.com/users/wagoodman","html_url":"https://github.com/wagoodman","followers_url":"https://api.github.com/users/wagoodman/followers","following_url":"https://api.github.com/users/wagoodman/following{/other_user}","gists_url":"https://api.github.com/users/wagoodman/gists{/gist_id}","starred_url":"https://api.github.com/users/wagoodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wagoodman/subscriptions","organizations_url":"https://api.github.com/users/wagoodman/orgs","repos_url":"https://api.github.com/users/wagoodman/repos","events_url":"https://api.github.com/users/wagoodman/events{/privacy}","received_events_url":"https://api.github.com/users/wagoodman/received_events","type":"User","site_admin":false},"html_url":"https://github.com/wagoodman/bashful","description":"Use a yaml file to stitch together commands and bash snippits and run them with a bit of style.  Why? Because your bash script should be quiet and shy-like (...and not such a loud mouth). ","fork":false,"url":"https://api.github.com/repos/wagoodman/bashful","forks_url":"https://api.github.com/repos/wagoodman/bashful/forks","keys_url":"https://api.github.com/repos/wagoodman/bashful/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wagoodman/bashful/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wagoodman/bashful/teams","hooks_url":"https://api.github.com/repos/wagoodman/bashful/hooks","issue_events_url":"https://api.github.com/repos/wagoodman/bashful/issues/events{/number}","events_url":"https://api.github.com/repos/wagoodman/bashful/events","assignees_url":"https://api.github.com/repos/wagoodman/bashful/assignees{/user}","branches_url":"https://api.github.com/repos/wagoodman/bashful/branches{/branch}","tags_url":"https://api.github.com/repos/wagoodman/bashful/tags","blobs_url":"https://api.github.com/repos/wagoodman/bashful/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wagoodman/bashful/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wagoodman/bashful/git/refs{/sha}","trees_url":"https://api.github.com/repos/wagoodman/bashful/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wagoodman/bashful/statuses/{sha}","languages_url":"https://api.github.com/repos/wagoodman/bashful/languages","stargazers_url":"https://api.github.com/repos/wagoodman/bashful/stargazers","contributors_url":"https://api.github.com/repos/wagoodman/bashful/contributors","subscribers_url":"https://api.github.com/repos/wagoodman/bashful/subscribers","subscription_url":"https://api.github.com/repos/wagoodman/bashful/subscription","commits_url":"https://api.github.com/repos/wagoodman/bashful/commits{/sha}","git_commits_url":"https://api.github.com/repos/wagoodman/bashful/git/commits{/sha}","comments_url":"https://api.github.com/repos/wagoodman/bashful/comments{/number}","issue_comment_url":"https://api.github.com/repos/wagoodman/bashful/issues/comments{/number}","contents_url":"https://api.github.com/repos/wagoodman/bashful/contents/{+path}","compare_url":"https://api.github.com/repos/wagoodman/bashful/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wagoodman/bashful/merges","archive_url":"https://api.github.com/repos/wagoodman/bashful/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wagoodman/bashful/downloads","issues_url":"https://api.github.com/repos/wagoodman/bashful/issues{/number}","pulls_url":"https://api.github.com/repos/wagoodman/bashful/pulls{/number}","milestones_url":"https://api.github.com/repos/wagoodman/bashful/milestones{/number}","notifications_url":"https://api.github.com/repos/wagoodman/bashful/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wagoodman/bashful/labels{/name}","releases_url":"https://api.github.com/repos/wagoodman/bashful/releases{/id}","deployments_url":"https://api.github.com/repos/wagoodman/bashful/deployments","created_at":"2017-09-18T01:04:55Z","updated_at":"2018-09-15T15:58:31Z","pushed_at":"2018-09-16T21:36:55Z","git_url":"git://github.com/wagoodman/bashful.git","ssh_url":"git@github.com:wagoodman/bashful.git","clone_url":"https://github.com/wagoodman/bashful.git","svn_url":"https://github.com/wagoodman/bashful","homepage":"","size":4109,"stargazers_count":645,"watchers_count":645,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":18,"open_issues":13,"watchers":645,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wagoodman/bashful/pulls/60"},"html":{"href":"https://github.com/wagoodman/bashful/pull/60"},"issue":{"href":"https://api.github.com/repos/wagoodman/bashful/issues/60"},"comments":{"href":"https://api.github.com/repos/wagoodman/bashful/issues/60/comments"},"review_comments":{"href":"https://api.github.com/repos/wagoodman/bashful/pulls/60/comments"},"review_comment":{"href":"https://api.github.com/repos/wagoodman/bashful/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wagoodman/bashful/pulls/60/commits"},"statuses":{"href":"https://api.github.com/repos/wagoodman/bashful/statuses/73727a0c1181ee58cbbdddd337d384043d946d5c"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}