{"action":"created","comment":{"url":"https://api.github.com/repos/vmware/vic/pulls/comments/74512645","id":74512645,"diff_hunk":"@@ -0,0 +1,141 @@\n+// Copyright 2016 VMware, Inc. All Rights Reserved.\n+//\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obtain a copy of the License at\n+//\n+//    http://www.apache.org/licenses/LICENSE-2.0\n+//\n+// Unless required by applicable law or agreed to in writing, software\n+// distributed under the License is distributed on an \"AS IS\" BASIS,\n+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+// See the License for the specific language governing permissions and\n+// limitations under the License.\n+\n+package list\n+\n+import (\n+\t\"path\"\n+\t\"text/tabwriter\"\n+\t\"text/template\"\n+\n+\tlog \"github.com/Sirupsen/logrus\"\n+\n+\t\"github.com/urfave/cli\"\n+\t\"github.com/vmware/vic/lib/install/data\"\n+\t\"github.com/vmware/vic/lib/install/management\"\n+\t\"github.com/vmware/vic/lib/install/validate\"\n+\t\"github.com/vmware/vic/pkg/errors\"\n+\t\"github.com/vmware/vic/pkg/trace\"\n+\t\"github.com/vmware/vic/pkg/vsphere/vm\"\n+\n+\t\"golang.org/x/net/context\"\n+)\n+\n+type items struct {\n+\tID   string\n+\tPath string\n+\tName string\n+}\n+\n+// templ is parsed by text/template package\n+const templ = `{{range .}}\n+{{.ID}}\t{{.Path}}\t{{.Name}}{{end}}\n+`\n+\n+// Delete has all input parameters for vic-machine delete command","path":"cmd/vic-machine/list/list.go","position":46,"original_position":46,"commit_id":"26920def15b65a1e1e6d352a6664ad88ce585e59","original_commit_id":"26920def15b65a1e1e6d352a6664ad88ce585e59","user":{"login":"hmahmood","id":6599778,"avatar_url":"https://avatars.githubusercontent.com/u/6599778?v=3","gravatar_id":"","url":"https://api.github.com/users/hmahmood","html_url":"https://github.com/hmahmood","followers_url":"https://api.github.com/users/hmahmood/followers","following_url":"https://api.github.com/users/hmahmood/following{/other_user}","gists_url":"https://api.github.com/users/hmahmood/gists{/gist_id}","starred_url":"https://api.github.com/users/hmahmood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmahmood/subscriptions","organizations_url":"https://api.github.com/users/hmahmood/orgs","repos_url":"https://api.github.com/users/hmahmood/repos","events_url":"https://api.github.com/users/hmahmood/events{/privacy}","received_events_url":"https://api.github.com/users/hmahmood/received_events","type":"User","site_admin":false},"body":"Need to update this","created_at":"2016-08-11T22:05:27Z","updated_at":"2016-08-11T22:05:27Z","html_url":"https://github.com/vmware/vic/pull/1858#discussion_r74512645","pull_request_url":"https://api.github.com/repos/vmware/vic/pulls/1858","_links":{"self":{"href":"https://api.github.com/repos/vmware/vic/pulls/comments/74512645"},"html":{"href":"https://github.com/vmware/vic/pull/1858#discussion_r74512645"},"pull_request":{"href":"https://api.github.com/repos/vmware/vic/pulls/1858"}}},"pull_request":{"url":"https://api.github.com/repos/vmware/vic/pulls/1858","id":80497990,"html_url":"https://github.com/vmware/vic/pull/1858","diff_url":"https://github.com/vmware/vic/pull/1858.diff","patch_url":"https://github.com/vmware/vic/pull/1858.patch","issue_url":"https://api.github.com/repos/vmware/vic/issues/1858","number":1858,"state":"open","locked":false,"title":"vic-machine ls","user":{"login":"emlin","id":1091772,"avatar_url":"https://avatars.githubusercontent.com/u/1091772?v=3","gravatar_id":"","url":"https://api.github.com/users/emlin","html_url":"https://github.com/emlin","followers_url":"https://api.github.com/users/emlin/followers","following_url":"https://api.github.com/users/emlin/following{/other_user}","gists_url":"https://api.github.com/users/emlin/gists{/gist_id}","starred_url":"https://api.github.com/users/emlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emlin/subscriptions","organizations_url":"https://api.github.com/users/emlin/orgs","repos_url":"https://api.github.com/users/emlin/repos","events_url":"https://api.github.com/users/emlin/events{/privacy}","received_events_url":"https://api.github.com/users/emlin/received_events","type":"User","site_admin":false},"body":"Fixes #1550 \r\nThis PR add command 'vic-machine ls', also unit test, integration test for it.\r\nAnd also update inspect command to accept --id got from vic-machine ls command.","created_at":"2016-08-08T18:25:38Z","updated_at":"2016-08-11T22:05:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e3ee6d5840e4864ce84e1e45174e3f0a51ba3e1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/vmware/vic/pulls/1858/commits","review_comments_url":"https://api.github.com/repos/vmware/vic/pulls/1858/comments","review_comment_url":"https://api.github.com/repos/vmware/vic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vmware/vic/issues/1858/comments","statuses_url":"https://api.github.com/repos/vmware/vic/statuses/26920def15b65a1e1e6d352a6664ad88ce585e59","head":{"label":"emlin:1550","ref":"1550","sha":"26920def15b65a1e1e6d352a6664ad88ce585e59","user":{"login":"emlin","id":1091772,"avatar_url":"https://avatars.githubusercontent.com/u/1091772?v=3","gravatar_id":"","url":"https://api.github.com/users/emlin","html_url":"https://github.com/emlin","followers_url":"https://api.github.com/users/emlin/followers","following_url":"https://api.github.com/users/emlin/following{/other_user}","gists_url":"https://api.github.com/users/emlin/gists{/gist_id}","starred_url":"https://api.github.com/users/emlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emlin/subscriptions","organizations_url":"https://api.github.com/users/emlin/orgs","repos_url":"https://api.github.com/users/emlin/repos","events_url":"https://api.github.com/users/emlin/events{/privacy}","received_events_url":"https://api.github.com/users/emlin/received_events","type":"User","site_admin":false},"repo":{"id":55440951,"name":"vic","full_name":"emlin/vic","owner":{"login":"emlin","id":1091772,"avatar_url":"https://avatars.githubusercontent.com/u/1091772?v=3","gravatar_id":"","url":"https://api.github.com/users/emlin","html_url":"https://github.com/emlin","followers_url":"https://api.github.com/users/emlin/followers","following_url":"https://api.github.com/users/emlin/following{/other_user}","gists_url":"https://api.github.com/users/emlin/gists{/gist_id}","starred_url":"https://api.github.com/users/emlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emlin/subscriptions","organizations_url":"https://api.github.com/users/emlin/orgs","repos_url":"https://api.github.com/users/emlin/repos","events_url":"https://api.github.com/users/emlin/events{/privacy}","received_events_url":"https://api.github.com/users/emlin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/emlin/vic","description":"Integrated containers on vSphere","fork":true,"url":"https://api.github.com/repos/emlin/vic","forks_url":"https://api.github.com/repos/emlin/vic/forks","keys_url":"https://api.github.com/repos/emlin/vic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emlin/vic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emlin/vic/teams","hooks_url":"https://api.github.com/repos/emlin/vic/hooks","issue_events_url":"https://api.github.com/repos/emlin/vic/issues/events{/number}","events_url":"https://api.github.com/repos/emlin/vic/events","assignees_url":"https://api.github.com/repos/emlin/vic/assignees{/user}","branches_url":"https://api.github.com/repos/emlin/vic/branches{/branch}","tags_url":"https://api.github.com/repos/emlin/vic/tags","blobs_url":"https://api.github.com/repos/emlin/vic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emlin/vic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emlin/vic/git/refs{/sha}","trees_url":"https://api.github.com/repos/emlin/vic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emlin/vic/statuses/{sha}","languages_url":"https://api.github.com/repos/emlin/vic/languages","stargazers_url":"https://api.github.com/repos/emlin/vic/stargazers","contributors_url":"https://api.github.com/repos/emlin/vic/contributors","subscribers_url":"https://api.github.com/repos/emlin/vic/subscribers","subscription_url":"https://api.github.com/repos/emlin/vic/subscription","commits_url":"https://api.github.com/repos/emlin/vic/commits{/sha}","git_commits_url":"https://api.github.com/repos/emlin/vic/git/commits{/sha}","comments_url":"https://api.github.com/repos/emlin/vic/comments{/number}","issue_comment_url":"https://api.github.com/repos/emlin/vic/issues/comments{/number}","contents_url":"https://api.github.com/repos/emlin/vic/contents/{+path}","compare_url":"https://api.github.com/repos/emlin/vic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emlin/vic/merges","archive_url":"https://api.github.com/repos/emlin/vic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emlin/vic/downloads","issues_url":"https://api.github.com/repos/emlin/vic/issues{/number}","pulls_url":"https://api.github.com/repos/emlin/vic/pulls{/number}","milestones_url":"https://api.github.com/repos/emlin/vic/milestones{/number}","notifications_url":"https://api.github.com/repos/emlin/vic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emlin/vic/labels{/name}","releases_url":"https://api.github.com/repos/emlin/vic/releases{/id}","deployments_url":"https://api.github.com/repos/emlin/vic/deployments","created_at":"2016-04-04T20:04:54Z","updated_at":"2016-04-04T20:04:55Z","pushed_at":"2016-08-11T21:46:52Z","git_url":"git://github.com/emlin/vic.git","ssh_url":"git@github.com:emlin/vic.git","clone_url":"https://github.com/emlin/vic.git","svn_url":"https://github.com/emlin/vic","homepage":null,"size":33374,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"vmware:master","ref":"master","sha":"aac5bb5914e3ad8b3b6c2e1613d17779e4e3900e","user":{"login":"vmware","id":473334,"avatar_url":"https://avatars.githubusercontent.com/u/473334?v=3","gravatar_id":"","url":"https://api.github.com/users/vmware","html_url":"https://github.com/vmware","followers_url":"https://api.github.com/users/vmware/followers","following_url":"https://api.github.com/users/vmware/following{/other_user}","gists_url":"https://api.github.com/users/vmware/gists{/gist_id}","starred_url":"https://api.github.com/users/vmware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmware/subscriptions","organizations_url":"https://api.github.com/users/vmware/orgs","repos_url":"https://api.github.com/users/vmware/repos","events_url":"https://api.github.com/users/vmware/events{/privacy}","received_events_url":"https://api.github.com/users/vmware/received_events","type":"Organization","site_admin":false},"repo":{"id":49597898,"name":"vic","full_name":"vmware/vic","owner":{"login":"vmware","id":473334,"avatar_url":"https://avatars.githubusercontent.com/u/473334?v=3","gravatar_id":"","url":"https://api.github.com/users/vmware","html_url":"https://github.com/vmware","followers_url":"https://api.github.com/users/vmware/followers","following_url":"https://api.github.com/users/vmware/following{/other_user}","gists_url":"https://api.github.com/users/vmware/gists{/gist_id}","starred_url":"https://api.github.com/users/vmware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmware/subscriptions","organizations_url":"https://api.github.com/users/vmware/orgs","repos_url":"https://api.github.com/users/vmware/repos","events_url":"https://api.github.com/users/vmware/events{/privacy}","received_events_url":"https://api.github.com/users/vmware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vmware/vic","description":"Integrated containers on vSphere","fork":false,"url":"https://api.github.com/repos/vmware/vic","forks_url":"https://api.github.com/repos/vmware/vic/forks","keys_url":"https://api.github.com/repos/vmware/vic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vmware/vic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vmware/vic/teams","hooks_url":"https://api.github.com/repos/vmware/vic/hooks","issue_events_url":"https://api.github.com/repos/vmware/vic/issues/events{/number}","events_url":"https://api.github.com/repos/vmware/vic/events","assignees_url":"https://api.github.com/repos/vmware/vic/assignees{/user}","branches_url":"https://api.github.com/repos/vmware/vic/branches{/branch}","tags_url":"https://api.github.com/repos/vmware/vic/tags","blobs_url":"https://api.github.com/repos/vmware/vic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vmware/vic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vmware/vic/git/refs{/sha}","trees_url":"https://api.github.com/repos/vmware/vic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vmware/vic/statuses/{sha}","languages_url":"https://api.github.com/repos/vmware/vic/languages","stargazers_url":"https://api.github.com/repos/vmware/vic/stargazers","contributors_url":"https://api.github.com/repos/vmware/vic/contributors","subscribers_url":"https://api.github.com/repos/vmware/vic/subscribers","subscription_url":"https://api.github.com/repos/vmware/vic/subscription","commits_url":"https://api.github.com/repos/vmware/vic/commits{/sha}","git_commits_url":"https://api.github.com/repos/vmware/vic/git/commits{/sha}","comments_url":"https://api.github.com/repos/vmware/vic/comments{/number}","issue_comment_url":"https://api.github.com/repos/vmware/vic/issues/comments{/number}","contents_url":"https://api.github.com/repos/vmware/vic/contents/{+path}","compare_url":"https://api.github.com/repos/vmware/vic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vmware/vic/merges","archive_url":"https://api.github.com/repos/vmware/vic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vmware/vic/downloads","issues_url":"https://api.github.com/repos/vmware/vic/issues{/number}","pulls_url":"https://api.github.com/repos/vmware/vic/pulls{/number}","milestones_url":"https://api.github.com/repos/vmware/vic/milestones{/number}","notifications_url":"https://api.github.com/repos/vmware/vic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vmware/vic/labels{/name}","releases_url":"https://api.github.com/repos/vmware/vic/releases{/id}","deployments_url":"https://api.github.com/repos/vmware/vic/deployments","created_at":"2016-01-13T19:53:57Z","updated_at":"2016-08-05T22:38:36Z","pushed_at":"2016-08-11T21:46:53Z","git_url":"git://github.com/vmware/vic.git","ssh_url":"git@github.com:vmware/vic.git","clone_url":"https://github.com/vmware/vic.git","svn_url":"https://github.com/vmware/vic","homepage":null,"size":75041,"stargazers_count":109,"watchers_count":109,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":39,"mirror_url":null,"open_issues_count":490,"forks":39,"open_issues":490,"watchers":109,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vmware/vic/pulls/1858"},"html":{"href":"https://github.com/vmware/vic/pull/1858"},"issue":{"href":"https://api.github.com/repos/vmware/vic/issues/1858"},"comments":{"href":"https://api.github.com/repos/vmware/vic/issues/1858/comments"},"review_comments":{"href":"https://api.github.com/repos/vmware/vic/pulls/1858/comments"},"review_comment":{"href":"https://api.github.com/repos/vmware/vic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vmware/vic/pulls/1858/commits"},"statuses":{"href":"https://api.github.com/repos/vmware/vic/statuses/26920def15b65a1e1e6d352a6664ad88ce585e59"}}}}
{"actor":{"display_login":"hmahmood"}}