{"action":"created","comment":{"url":"https://api.github.com/repos/exoscale/egoscale/pulls/comments/207812031","pull_request_review_id":143497254,"id":207812031,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzgxMjAzMQ==","diff_hunk":"@@ -0,0 +1,64 @@\n+package cmd\n+\n+import (\n+\t\"context\"\n+\t\"fmt\"\n+\t\"os\"\n+\n+\t\"github.com/exoscale/egoscale\"\n+\t\"github.com/spf13/cobra\"\n+)\n+\n+// stopCmd represents the stop command\n+var vmStopCmd = &cobra.Command{\n+\tUse:   \"stop <vm name> [vm name] ...\",\n+\tShort: \"Stop virtual machine instance\",\n+\tRunE: func(cmd *cobra.Command, args []string) error {\n+\t\tif len(args) < 1 {\n+\t\t\treturn cmd.Usage()\n+\t\t}\n+\n+\t\tfor _, v := range args {\n+\t\t\tif err := asyncStopWithCtx(gContext, v); err != nil {\n+\t\t\t\tfmt.Fprintln(os.Stderr, err) // nolint: errcheck\n+\t\t\t} else {\n+\t\t\t\tfmt.Println(\"\\nStopped !\")\n+\t\t\t}\n+\t\t}\n+\t\treturn nil","path":"cmd/exo/cmd/vm_stop.go","position":28,"original_position":28,"commit_id":"d58c94bd23bdb59df797d46b7d1c4326013132df","original_commit_id":"d58c94bd23bdb59df797d46b7d1c4326013132df","user":{"login":"pierre-emmanuelJ","id":15922119,"node_id":"MDQ6VXNlcjE1OTIyMTE5","avatar_url":"https://avatars0.githubusercontent.com/u/15922119?v=4","gravatar_id":"","url":"https://api.github.com/users/pierre-emmanuelJ","html_url":"https://github.com/pierre-emmanuelJ","followers_url":"https://api.github.com/users/pierre-emmanuelJ/followers","following_url":"https://api.github.com/users/pierre-emmanuelJ/following{/other_user}","gists_url":"https://api.github.com/users/pierre-emmanuelJ/gists{/gist_id}","starred_url":"https://api.github.com/users/pierre-emmanuelJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierre-emmanuelJ/subscriptions","organizations_url":"https://api.github.com/users/pierre-emmanuelJ/orgs","repos_url":"https://api.github.com/users/pierre-emmanuelJ/repos","events_url":"https://api.github.com/users/pierre-emmanuelJ/events{/privacy}","received_events_url":"https://api.github.com/users/pierre-emmanuelJ/received_events","type":"User","site_admin":false},"body":"I dont want to stop all args vm stopping so I just display error on stderr and continue the flow.\r\nthat why I return nil at the end","created_at":"2018-08-06T08:34:37Z","updated_at":"2018-08-06T08:34:37Z","html_url":"https://github.com/exoscale/egoscale/pull/261#discussion_r207812031","pull_request_url":"https://api.github.com/repos/exoscale/egoscale/pulls/261","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/exoscale/egoscale/pulls/comments/207812031"},"html":{"href":"https://github.com/exoscale/egoscale/pull/261#discussion_r207812031"},"pull_request":{"href":"https://api.github.com/repos/exoscale/egoscale/pulls/261"}},"in_reply_to_id":207810587},"pull_request":{"url":"https://api.github.com/repos/exoscale/egoscale/pulls/261","id":206007040,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2MDA3MDQw","html_url":"https://github.com/exoscale/egoscale/pull/261","diff_url":"https://github.com/exoscale/egoscale/pull/261.diff","patch_url":"https://github.com/exoscale/egoscale/pull/261.patch","issue_url":"https://api.github.com/repos/exoscale/egoscale/issues/261","number":261,"state":"open","locked":false,"title":"implem exo vm stop","user":{"login":"pierre-emmanuelJ","id":15922119,"node_id":"MDQ6VXNlcjE1OTIyMTE5","avatar_url":"https://avatars0.githubusercontent.com/u/15922119?v=4","gravatar_id":"","url":"https://api.github.com/users/pierre-emmanuelJ","html_url":"https://github.com/pierre-emmanuelJ","followers_url":"https://api.github.com/users/pierre-emmanuelJ/followers","following_url":"https://api.github.com/users/pierre-emmanuelJ/following{/other_user}","gists_url":"https://api.github.com/users/pierre-emmanuelJ/gists{/gist_id}","starred_url":"https://api.github.com/users/pierre-emmanuelJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierre-emmanuelJ/subscriptions","organizations_url":"https://api.github.com/users/pierre-emmanuelJ/orgs","repos_url":"https://api.github.com/users/pierre-emmanuelJ/repos","events_url":"https://api.github.com/users/pierre-emmanuelJ/events{/privacy}","received_events_url":"https://api.github.com/users/pierre-emmanuelJ/received_events","type":"User","site_admin":false},"body":"Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@epitech.eu>","created_at":"2018-08-03T11:49:49Z","updated_at":"2018-08-06T08:34:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"851a927fcdff1532fa8942c21cb91b5bdf98f5dd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/exoscale/egoscale/pulls/261/commits","review_comments_url":"https://api.github.com/repos/exoscale/egoscale/pulls/261/comments","review_comment_url":"https://api.github.com/repos/exoscale/egoscale/pulls/comments{/number}","comments_url":"https://api.github.com/repos/exoscale/egoscale/issues/261/comments","statuses_url":"https://api.github.com/repos/exoscale/egoscale/statuses/d58c94bd23bdb59df797d46b7d1c4326013132df","head":{"label":"exoscale:vm-stop","ref":"vm-stop","sha":"d58c94bd23bdb59df797d46b7d1c4326013132df","user":{"login":"exoscale","id":2023286,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMjMyODY=","avatar_url":"https://avatars3.githubusercontent.com/u/2023286?v=4","gravatar_id":"","url":"https://api.github.com/users/exoscale","html_url":"https://github.com/exoscale","followers_url":"https://api.github.com/users/exoscale/followers","following_url":"https://api.github.com/users/exoscale/following{/other_user}","gists_url":"https://api.github.com/users/exoscale/gists{/gist_id}","starred_url":"https://api.github.com/users/exoscale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exoscale/subscriptions","organizations_url":"https://api.github.com/users/exoscale/orgs","repos_url":"https://api.github.com/users/exoscale/repos","events_url":"https://api.github.com/users/exoscale/events{/privacy}","received_events_url":"https://api.github.com/users/exoscale/received_events","type":"Organization","site_admin":false},"repo":{"id":27586661,"node_id":"MDEwOlJlcG9zaXRvcnkyNzU4NjY2MQ==","name":"egoscale","full_name":"exoscale/egoscale","owner":{"login":"exoscale","id":2023286,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMjMyODY=","avatar_url":"https://avatars3.githubusercontent.com/u/2023286?v=4","gravatar_id":"","url":"https://api.github.com/users/exoscale","html_url":"https://github.com/exoscale","followers_url":"https://api.github.com/users/exoscale/followers","following_url":"https://api.github.com/users/exoscale/following{/other_user}","gists_url":"https://api.github.com/users/exoscale/gists{/gist_id}","starred_url":"https://api.github.com/users/exoscale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exoscale/subscriptions","organizations_url":"https://api.github.com/users/exoscale/orgs","repos_url":"https://api.github.com/users/exoscale/repos","events_url":"https://api.github.com/users/exoscale/events{/privacy}","received_events_url":"https://api.github.com/users/exoscale/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/exoscale/egoscale","description":"exoscale golang bindings","fork":false,"url":"https://api.github.com/repos/exoscale/egoscale","forks_url":"https://api.github.com/repos/exoscale/egoscale/forks","keys_url":"https://api.github.com/repos/exoscale/egoscale/keys{/key_id}","collaborators_url":"https://api.github.com/repos/exoscale/egoscale/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/exoscale/egoscale/teams","hooks_url":"https://api.github.com/repos/exoscale/egoscale/hooks","issue_events_url":"https://api.github.com/repos/exoscale/egoscale/issues/events{/number}","events_url":"https://api.github.com/repos/exoscale/egoscale/events","assignees_url":"https://api.github.com/repos/exoscale/egoscale/assignees{/user}","branches_url":"https://api.github.com/repos/exoscale/egoscale/branches{/branch}","tags_url":"https://api.github.com/repos/exoscale/egoscale/tags","blobs_url":"https://api.github.com/repos/exoscale/egoscale/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/exoscale/egoscale/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/exoscale/egoscale/git/refs{/sha}","trees_url":"https://api.github.com/repos/exoscale/egoscale/git/trees{/sha}","statuses_url":"https://api.github.com/repos/exoscale/egoscale/statuses/{sha}","languages_url":"https://api.github.com/repos/exoscale/egoscale/languages","stargazers_url":"https://api.github.com/repos/exoscale/egoscale/stargazers","contributors_url":"https://api.github.com/repos/exoscale/egoscale/contributors","subscribers_url":"https://api.github.com/repos/exoscale/egoscale/subscribers","subscription_url":"https://api.github.com/repos/exoscale/egoscale/subscription","commits_url":"https://api.github.com/repos/exoscale/egoscale/commits{/sha}","git_commits_url":"https://api.github.com/repos/exoscale/egoscale/git/commits{/sha}","comments_url":"https://api.github.com/repos/exoscale/egoscale/comments{/number}","issue_comment_url":"https://api.github.com/repos/exoscale/egoscale/issues/comments{/number}","contents_url":"https://api.github.com/repos/exoscale/egoscale/contents/{+path}","compare_url":"https://api.github.com/repos/exoscale/egoscale/compare/{base}...{head}","merges_url":"https://api.github.com/repos/exoscale/egoscale/merges","archive_url":"https://api.github.com/repos/exoscale/egoscale/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/exoscale/egoscale/downloads","issues_url":"https://api.github.com/repos/exoscale/egoscale/issues{/number}","pulls_url":"https://api.github.com/repos/exoscale/egoscale/pulls{/number}","milestones_url":"https://api.github.com/repos/exoscale/egoscale/milestones{/number}","notifications_url":"https://api.github.com/repos/exoscale/egoscale/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/exoscale/egoscale/labels{/name}","releases_url":"https://api.github.com/repos/exoscale/egoscale/releases{/id}","deployments_url":"https://api.github.com/repos/exoscale/egoscale/deployments","created_at":"2014-12-05T10:33:11Z","updated_at":"2018-08-06T07:58:26Z","pushed_at":"2018-08-06T08:30:11Z","git_url":"git://github.com/exoscale/egoscale.git","ssh_url":"git@github.com:exoscale/egoscale.git","clone_url":"https://github.com/exoscale/egoscale.git","svn_url":"https://github.com/exoscale/egoscale","homepage":null,"size":1163,"stargazers_count":6,"watchers_count":6,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":22,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":12,"open_issues":22,"watchers":6,"default_branch":"master"}},"base":{"label":"exoscale:master","ref":"master","sha":"591e8a6cd91a5ed971c26f83fd39719d009deb50","user":{"login":"exoscale","id":2023286,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMjMyODY=","avatar_url":"https://avatars3.githubusercontent.com/u/2023286?v=4","gravatar_id":"","url":"https://api.github.com/users/exoscale","html_url":"https://github.com/exoscale","followers_url":"https://api.github.com/users/exoscale/followers","following_url":"https://api.github.com/users/exoscale/following{/other_user}","gists_url":"https://api.github.com/users/exoscale/gists{/gist_id}","starred_url":"https://api.github.com/users/exoscale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exoscale/subscriptions","organizations_url":"https://api.github.com/users/exoscale/orgs","repos_url":"https://api.github.com/users/exoscale/repos","events_url":"https://api.github.com/users/exoscale/events{/privacy}","received_events_url":"https://api.github.com/users/exoscale/received_events","type":"Organization","site_admin":false},"repo":{"id":27586661,"node_id":"MDEwOlJlcG9zaXRvcnkyNzU4NjY2MQ==","name":"egoscale","full_name":"exoscale/egoscale","owner":{"login":"exoscale","id":2023286,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMjMyODY=","avatar_url":"https://avatars3.githubusercontent.com/u/2023286?v=4","gravatar_id":"","url":"https://api.github.com/users/exoscale","html_url":"https://github.com/exoscale","followers_url":"https://api.github.com/users/exoscale/followers","following_url":"https://api.github.com/users/exoscale/following{/other_user}","gists_url":"https://api.github.com/users/exoscale/gists{/gist_id}","starred_url":"https://api.github.com/users/exoscale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exoscale/subscriptions","organizations_url":"https://api.github.com/users/exoscale/orgs","repos_url":"https://api.github.com/users/exoscale/repos","events_url":"https://api.github.com/users/exoscale/events{/privacy}","received_events_url":"https://api.github.com/users/exoscale/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/exoscale/egoscale","description":"exoscale golang bindings","fork":false,"url":"https://api.github.com/repos/exoscale/egoscale","forks_url":"https://api.github.com/repos/exoscale/egoscale/forks","keys_url":"https://api.github.com/repos/exoscale/egoscale/keys{/key_id}","collaborators_url":"https://api.github.com/repos/exoscale/egoscale/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/exoscale/egoscale/teams","hooks_url":"https://api.github.com/repos/exoscale/egoscale/hooks","issue_events_url":"https://api.github.com/repos/exoscale/egoscale/issues/events{/number}","events_url":"https://api.github.com/repos/exoscale/egoscale/events","assignees_url":"https://api.github.com/repos/exoscale/egoscale/assignees{/user}","branches_url":"https://api.github.com/repos/exoscale/egoscale/branches{/branch}","tags_url":"https://api.github.com/repos/exoscale/egoscale/tags","blobs_url":"https://api.github.com/repos/exoscale/egoscale/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/exoscale/egoscale/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/exoscale/egoscale/git/refs{/sha}","trees_url":"https://api.github.com/repos/exoscale/egoscale/git/trees{/sha}","statuses_url":"https://api.github.com/repos/exoscale/egoscale/statuses/{sha}","languages_url":"https://api.github.com/repos/exoscale/egoscale/languages","stargazers_url":"https://api.github.com/repos/exoscale/egoscale/stargazers","contributors_url":"https://api.github.com/repos/exoscale/egoscale/contributors","subscribers_url":"https://api.github.com/repos/exoscale/egoscale/subscribers","subscription_url":"https://api.github.com/repos/exoscale/egoscale/subscription","commits_url":"https://api.github.com/repos/exoscale/egoscale/commits{/sha}","git_commits_url":"https://api.github.com/repos/exoscale/egoscale/git/commits{/sha}","comments_url":"https://api.github.com/repos/exoscale/egoscale/comments{/number}","issue_comment_url":"https://api.github.com/repos/exoscale/egoscale/issues/comments{/number}","contents_url":"https://api.github.com/repos/exoscale/egoscale/contents/{+path}","compare_url":"https://api.github.com/repos/exoscale/egoscale/compare/{base}...{head}","merges_url":"https://api.github.com/repos/exoscale/egoscale/merges","archive_url":"https://api.github.com/repos/exoscale/egoscale/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/exoscale/egoscale/downloads","issues_url":"https://api.github.com/repos/exoscale/egoscale/issues{/number}","pulls_url":"https://api.github.com/repos/exoscale/egoscale/pulls{/number}","milestones_url":"https://api.github.com/repos/exoscale/egoscale/milestones{/number}","notifications_url":"https://api.github.com/repos/exoscale/egoscale/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/exoscale/egoscale/labels{/name}","releases_url":"https://api.github.com/repos/exoscale/egoscale/releases{/id}","deployments_url":"https://api.github.com/repos/exoscale/egoscale/deployments","created_at":"2014-12-05T10:33:11Z","updated_at":"2018-08-06T07:58:26Z","pushed_at":"2018-08-06T08:30:11Z","git_url":"git://github.com/exoscale/egoscale.git","ssh_url":"git@github.com:exoscale/egoscale.git","clone_url":"https://github.com/exoscale/egoscale.git","svn_url":"https://github.com/exoscale/egoscale","homepage":null,"size":1163,"stargazers_count":6,"watchers_count":6,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":22,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":12,"open_issues":22,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/exoscale/egoscale/pulls/261"},"html":{"href":"https://github.com/exoscale/egoscale/pull/261"},"issue":{"href":"https://api.github.com/repos/exoscale/egoscale/issues/261"},"comments":{"href":"https://api.github.com/repos/exoscale/egoscale/issues/261/comments"},"review_comments":{"href":"https://api.github.com/repos/exoscale/egoscale/pulls/261/comments"},"review_comment":{"href":"https://api.github.com/repos/exoscale/egoscale/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/exoscale/egoscale/pulls/261/commits"},"statuses":{"href":"https://api.github.com/repos/exoscale/egoscale/statuses/d58c94bd23bdb59df797d46b7d1c4326013132df"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"pierre-emmanuelJ"}}