{"action":"opened","number":12,"pull_request":{"url":"https://api.github.com/repos/lunarway/shuttle/pulls/12","id":219798150,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5Nzk4MTUw","html_url":"https://github.com/lunarway/shuttle/pull/12","diff_url":"https://github.com/lunarway/shuttle/pull/12.diff","patch_url":"https://github.com/lunarway/shuttle/pull/12.patch","issue_url":"https://api.github.com/repos/lunarway/shuttle/issues/12","number":12,"state":"open","locked":false,"title":"Ensure exactly one argument to get command","user":{"login":"Crevil","id":6881694,"node_id":"MDQ6VXNlcjY4ODE2OTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6881694?v=4","gravatar_id":"","url":"https://api.github.com/users/Crevil","html_url":"https://github.com/Crevil","followers_url":"https://api.github.com/users/Crevil/followers","following_url":"https://api.github.com/users/Crevil/following{/other_user}","gists_url":"https://api.github.com/users/Crevil/gists{/gist_id}","starred_url":"https://api.github.com/users/Crevil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crevil/subscriptions","organizations_url":"https://api.github.com/users/Crevil/orgs","repos_url":"https://api.github.com/users/Crevil/repos","events_url":"https://api.github.com/users/Crevil/events{/privacy}","received_events_url":"https://api.github.com/users/Crevil/received_events","type":"User","site_admin":false},"body":"Running `get` without arguments results in a panic\r\n\r\n```\r\n$ shuttle get\r\npanic: runtime error: index out of range\r\n\r\ngoroutine 1 [running]:\r\ngithub.com/lunarway/shuttle/cmd.glob..func3(0x148ce00, 0x14b0878, 0x0, 0x0)\r\n\t/home/travis/gopath/src/github.com/lunarway/shuttle/cmd/get.go:21 +0xea\r\ngithub.com/spf13/cobra.(*Command).execute(0x148ce00, 0x14b0878, 0x0, 0x0, 0x148ce00, 0x14b0878)\r\n\t/home/travis/gopath/src/github.com/spf13/cobra/command.go:766 +0x2c1\r\ngithub.com/spf13/cobra.(*Command).ExecuteC(0x148c940, 0x13077ec, 0x26, 0x148c6e0)\r\n\t/home/travis/gopath/src/github.com/spf13/cobra/command.go:852 +0x30a\r\ngithub.com/spf13/cobra.(*Command).Execute(0x148c940, 0x1003a8c, 0xc42008a058)\r\n\t/home/travis/gopath/src/github.com/spf13/cobra/command.go:800 +0x2b\r\ngithub.com/lunarway/shuttle/cmd.Execute()\r\n\t/home/travis/gopath/src/github.com/lunarway/shuttle/cmd/root.go:44 +0x31\r\nmain.main()\r\n\t/home/travis/gopath/src/github.com/lunarway/shuttle/main.go:8 +0x20\r\n```\r\n\r\nThis fix ensures exactly one argument is provided.","created_at":"2018-10-02T18:17:55Z","updated_at":"2018-10-02T18:17:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/lunarway/shuttle/pulls/12/commits","review_comments_url":"https://api.github.com/repos/lunarway/shuttle/pulls/12/comments","review_comment_url":"https://api.github.com/repos/lunarway/shuttle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lunarway/shuttle/issues/12/comments","statuses_url":"https://api.github.com/repos/lunarway/shuttle/statuses/6ffbc539068cb32986ca733d874a77c08831c9c7","head":{"label":"lunarway:fix/missing-argument-panics","ref":"fix/missing-argument-panics","sha":"6ffbc539068cb32986ca733d874a77c08831c9c7","user":{"login":"lunarway","id":29371397,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MzcxMzk3","avatar_url":"https://avatars3.githubusercontent.com/u/29371397?v=4","gravatar_id":"","url":"https://api.github.com/users/lunarway","html_url":"https://github.com/lunarway","followers_url":"https://api.github.com/users/lunarway/followers","following_url":"https://api.github.com/users/lunarway/following{/other_user}","gists_url":"https://api.github.com/users/lunarway/gists{/gist_id}","starred_url":"https://api.github.com/users/lunarway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunarway/subscriptions","organizations_url":"https://api.github.com/users/lunarway/orgs","repos_url":"https://api.github.com/users/lunarway/repos","events_url":"https://api.github.com/users/lunarway/events{/privacy}","received_events_url":"https://api.github.com/users/lunarway/received_events","type":"Organization","site_admin":false},"repo":{"id":150251577,"node_id":"MDEwOlJlcG9zaXRvcnkxNTAyNTE1Nzc=","name":"shuttle","full_name":"lunarway/shuttle","private":false,"owner":{"login":"lunarway","id":29371397,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MzcxMzk3","avatar_url":"https://avatars3.githubusercontent.com/u/29371397?v=4","gravatar_id":"","url":"https://api.github.com/users/lunarway","html_url":"https://github.com/lunarway","followers_url":"https://api.github.com/users/lunarway/followers","following_url":"https://api.github.com/users/lunarway/following{/other_user}","gists_url":"https://api.github.com/users/lunarway/gists{/gist_id}","starred_url":"https://api.github.com/users/lunarway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunarway/subscriptions","organizations_url":"https://api.github.com/users/lunarway/orgs","repos_url":"https://api.github.com/users/lunarway/repos","events_url":"https://api.github.com/users/lunarway/events{/privacy}","received_events_url":"https://api.github.com/users/lunarway/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/lunarway/shuttle","description":"A CLI for handling shared build and deploy tools between many projects no matter what technologies the project is using.","fork":false,"url":"https://api.github.com/repos/lunarway/shuttle","forks_url":"https://api.github.com/repos/lunarway/shuttle/forks","keys_url":"https://api.github.com/repos/lunarway/shuttle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lunarway/shuttle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lunarway/shuttle/teams","hooks_url":"https://api.github.com/repos/lunarway/shuttle/hooks","issue_events_url":"https://api.github.com/repos/lunarway/shuttle/issues/events{/number}","events_url":"https://api.github.com/repos/lunarway/shuttle/events","assignees_url":"https://api.github.com/repos/lunarway/shuttle/assignees{/user}","branches_url":"https://api.github.com/repos/lunarway/shuttle/branches{/branch}","tags_url":"https://api.github.com/repos/lunarway/shuttle/tags","blobs_url":"https://api.github.com/repos/lunarway/shuttle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lunarway/shuttle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lunarway/shuttle/git/refs{/sha}","trees_url":"https://api.github.com/repos/lunarway/shuttle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lunarway/shuttle/statuses/{sha}","languages_url":"https://api.github.com/repos/lunarway/shuttle/languages","stargazers_url":"https://api.github.com/repos/lunarway/shuttle/stargazers","contributors_url":"https://api.github.com/repos/lunarway/shuttle/contributors","subscribers_url":"https://api.github.com/repos/lunarway/shuttle/subscribers","subscription_url":"https://api.github.com/repos/lunarway/shuttle/subscription","commits_url":"https://api.github.com/repos/lunarway/shuttle/commits{/sha}","git_commits_url":"https://api.github.com/repos/lunarway/shuttle/git/commits{/sha}","comments_url":"https://api.github.com/repos/lunarway/shuttle/comments{/number}","issue_comment_url":"https://api.github.com/repos/lunarway/shuttle/issues/comments{/number}","contents_url":"https://api.github.com/repos/lunarway/shuttle/contents/{+path}","compare_url":"https://api.github.com/repos/lunarway/shuttle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lunarway/shuttle/merges","archive_url":"https://api.github.com/repos/lunarway/shuttle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lunarway/shuttle/downloads","issues_url":"https://api.github.com/repos/lunarway/shuttle/issues{/number}","pulls_url":"https://api.github.com/repos/lunarway/shuttle/pulls{/number}","milestones_url":"https://api.github.com/repos/lunarway/shuttle/milestones{/number}","notifications_url":"https://api.github.com/repos/lunarway/shuttle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lunarway/shuttle/labels{/name}","releases_url":"https://api.github.com/repos/lunarway/shuttle/releases{/id}","deployments_url":"https://api.github.com/repos/lunarway/shuttle/deployments","created_at":"2018-09-25T11:03:16Z","updated_at":"2018-10-02T12:57:27Z","pushed_at":"2018-10-02T18:16:49Z","git_url":"git://github.com/lunarway/shuttle.git","ssh_url":"git@github.com:lunarway/shuttle.git","clone_url":"https://github.com/lunarway/shuttle.git","svn_url":"https://github.com/lunarway/shuttle","homepage":null,"size":1759,"stargazers_count":2,"watchers_count":2,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":0,"open_issues":6,"watchers":2,"default_branch":"master"}},"base":{"label":"lunarway:master","ref":"master","sha":"2db09893792cb7732d2009a75208e08adc59ceeb","user":{"login":"lunarway","id":29371397,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MzcxMzk3","avatar_url":"https://avatars3.githubusercontent.com/u/29371397?v=4","gravatar_id":"","url":"https://api.github.com/users/lunarway","html_url":"https://github.com/lunarway","followers_url":"https://api.github.com/users/lunarway/followers","following_url":"https://api.github.com/users/lunarway/following{/other_user}","gists_url":"https://api.github.com/users/lunarway/gists{/gist_id}","starred_url":"https://api.github.com/users/lunarway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunarway/subscriptions","organizations_url":"https://api.github.com/users/lunarway/orgs","repos_url":"https://api.github.com/users/lunarway/repos","events_url":"https://api.github.com/users/lunarway/events{/privacy}","received_events_url":"https://api.github.com/users/lunarway/received_events","type":"Organization","site_admin":false},"repo":{"id":150251577,"node_id":"MDEwOlJlcG9zaXRvcnkxNTAyNTE1Nzc=","name":"shuttle","full_name":"lunarway/shuttle","private":false,"owner":{"login":"lunarway","id":29371397,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MzcxMzk3","avatar_url":"https://avatars3.githubusercontent.com/u/29371397?v=4","gravatar_id":"","url":"https://api.github.com/users/lunarway","html_url":"https://github.com/lunarway","followers_url":"https://api.github.com/users/lunarway/followers","following_url":"https://api.github.com/users/lunarway/following{/other_user}","gists_url":"https://api.github.com/users/lunarway/gists{/gist_id}","starred_url":"https://api.github.com/users/lunarway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunarway/subscriptions","organizations_url":"https://api.github.com/users/lunarway/orgs","repos_url":"https://api.github.com/users/lunarway/repos","events_url":"https://api.github.com/users/lunarway/events{/privacy}","received_events_url":"https://api.github.com/users/lunarway/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/lunarway/shuttle","description":"A CLI for handling shared build and deploy tools between many projects no matter what technologies the project is using.","fork":false,"url":"https://api.github.com/repos/lunarway/shuttle","forks_url":"https://api.github.com/repos/lunarway/shuttle/forks","keys_url":"https://api.github.com/repos/lunarway/shuttle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lunarway/shuttle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lunarway/shuttle/teams","hooks_url":"https://api.github.com/repos/lunarway/shuttle/hooks","issue_events_url":"https://api.github.com/repos/lunarway/shuttle/issues/events{/number}","events_url":"https://api.github.com/repos/lunarway/shuttle/events","assignees_url":"https://api.github.com/repos/lunarway/shuttle/assignees{/user}","branches_url":"https://api.github.com/repos/lunarway/shuttle/branches{/branch}","tags_url":"https://api.github.com/repos/lunarway/shuttle/tags","blobs_url":"https://api.github.com/repos/lunarway/shuttle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lunarway/shuttle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lunarway/shuttle/git/refs{/sha}","trees_url":"https://api.github.com/repos/lunarway/shuttle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lunarway/shuttle/statuses/{sha}","languages_url":"https://api.github.com/repos/lunarway/shuttle/languages","stargazers_url":"https://api.github.com/repos/lunarway/shuttle/stargazers","contributors_url":"https://api.github.com/repos/lunarway/shuttle/contributors","subscribers_url":"https://api.github.com/repos/lunarway/shuttle/subscribers","subscription_url":"https://api.github.com/repos/lunarway/shuttle/subscription","commits_url":"https://api.github.com/repos/lunarway/shuttle/commits{/sha}","git_commits_url":"https://api.github.com/repos/lunarway/shuttle/git/commits{/sha}","comments_url":"https://api.github.com/repos/lunarway/shuttle/comments{/number}","issue_comment_url":"https://api.github.com/repos/lunarway/shuttle/issues/comments{/number}","contents_url":"https://api.github.com/repos/lunarway/shuttle/contents/{+path}","compare_url":"https://api.github.com/repos/lunarway/shuttle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lunarway/shuttle/merges","archive_url":"https://api.github.com/repos/lunarway/shuttle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lunarway/shuttle/downloads","issues_url":"https://api.github.com/repos/lunarway/shuttle/issues{/number}","pulls_url":"https://api.github.com/repos/lunarway/shuttle/pulls{/number}","milestones_url":"https://api.github.com/repos/lunarway/shuttle/milestones{/number}","notifications_url":"https://api.github.com/repos/lunarway/shuttle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lunarway/shuttle/labels{/name}","releases_url":"https://api.github.com/repos/lunarway/shuttle/releases{/id}","deployments_url":"https://api.github.com/repos/lunarway/shuttle/deployments","created_at":"2018-09-25T11:03:16Z","updated_at":"2018-10-02T12:57:27Z","pushed_at":"2018-10-02T18:16:49Z","git_url":"git://github.com/lunarway/shuttle.git","ssh_url":"git@github.com:lunarway/shuttle.git","clone_url":"https://github.com/lunarway/shuttle.git","svn_url":"https://github.com/lunarway/shuttle","homepage":null,"size":1759,"stargazers_count":2,"watchers_count":2,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":0,"open_issues":6,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lunarway/shuttle/pulls/12"},"html":{"href":"https://github.com/lunarway/shuttle/pull/12"},"issue":{"href":"https://api.github.com/repos/lunarway/shuttle/issues/12"},"comments":{"href":"https://api.github.com/repos/lunarway/shuttle/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/lunarway/shuttle/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/lunarway/shuttle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lunarway/shuttle/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/lunarway/shuttle/statuses/6ffbc539068cb32986ca733d874a77c08831c9c7"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":1,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"Crevil"}}