{"action":"created","comment":{"url":"https://api.github.com/repos/vmware/priam/pulls/comments/80732531","pull_request_review_id":1767350,"id":80732531,"diff_hunk":"@@ -140,9 +142,42 @@ func checkTarget(cfg *Config) bool {\n \treturn true\n }\n \n+func makeOptionMap(c *cli.Context, flags []cli.Flag, name, value string) map[string]interface{} {\n+\tomap := map[string]interface{}{name: value}\n+\tfor _, flag := range flags {\n+\t\tswitch f := flag.(type) {\n+\t\tcase cli.StringFlag:\n+\t\t\tomap[f.Name] = c.String(f.Name)\n+\t\tcase cli.BoolFlag:\n+\t\t\tomap[f.Name] = c.Bool(f.Name)\n+\t\tcase cli.IntFlag:\n+\t\t\tomap[f.Name] = c.Int(f.Name)\n+\t\t}","path":"cli/cli.go","position":42,"original_position":42,"commit_id":"ab4efe6eaeaa95b1cfe5c5bf178894f14729a94f","original_commit_id":"ab4efe6eaeaa95b1cfe5c5bf178894f14729a94f","user":{"login":"fstrudel","id":1244567,"avatar_url":"https://avatars.githubusercontent.com/u/1244567?v=3","gravatar_id":"","url":"https://api.github.com/users/fstrudel","html_url":"https://github.com/fstrudel","followers_url":"https://api.github.com/users/fstrudel/followers","following_url":"https://api.github.com/users/fstrudel/following{/other_user}","gists_url":"https://api.github.com/users/fstrudel/gists{/gist_id}","starred_url":"https://api.github.com/users/fstrudel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fstrudel/subscriptions","organizations_url":"https://api.github.com/users/fstrudel/orgs","repos_url":"https://api.github.com/users/fstrudel/repos","events_url":"https://api.github.com/users/fstrudel/events{/privacy}","received_events_url":"https://api.github.com/users/fstrudel/received_events","type":"User","site_admin":false},"body":"add a default case with an error?","created_at":"2016-09-27T16:16:38Z","updated_at":"2016-09-27T16:25:52Z","html_url":"https://github.com/vmware/priam/pull/7#discussion_r80732531","pull_request_url":"https://api.github.com/repos/vmware/priam/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/vmware/priam/pulls/comments/80732531"},"html":{"href":"https://github.com/vmware/priam/pull/7#discussion_r80732531"},"pull_request":{"href":"https://api.github.com/repos/vmware/priam/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/vmware/priam/pulls/7","id":86798882,"html_url":"https://github.com/vmware/priam/pull/7","diff_url":"https://github.com/vmware/priam/pull/7.diff","patch_url":"https://github.com/vmware/priam/pull/7.patch","issue_url":"https://api.github.com/repos/vmware/priam/issues/7","number":7,"state":"open","locked":false,"title":"Support Oauth2 client and application template management","user":{"login":"daleolds","id":652924,"avatar_url":"https://avatars.githubusercontent.com/u/652924?v=3","gravatar_id":"","url":"https://api.github.com/users/daleolds","html_url":"https://github.com/daleolds","followers_url":"https://api.github.com/users/daleolds/followers","following_url":"https://api.github.com/users/daleolds/following{/other_user}","gists_url":"https://api.github.com/users/daleolds/gists{/gist_id}","starred_url":"https://api.github.com/users/daleolds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daleolds/subscriptions","organizations_url":"https://api.github.com/users/daleolds/orgs","repos_url":"https://api.github.com/users/daleolds/repos","events_url":"https://api.github.com/users/daleolds/events{/privacy}","received_events_url":"https://api.github.com/users/daleolds/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-26T18:58:05Z","updated_at":"2016-09-27T16:25:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e4b4b00268c71fd9637fb8bfab06d0526a3bf56f","assignee":{"login":"fstrudel","id":1244567,"avatar_url":"https://avatars.githubusercontent.com/u/1244567?v=3","gravatar_id":"","url":"https://api.github.com/users/fstrudel","html_url":"https://github.com/fstrudel","followers_url":"https://api.github.com/users/fstrudel/followers","following_url":"https://api.github.com/users/fstrudel/following{/other_user}","gists_url":"https://api.github.com/users/fstrudel/gists{/gist_id}","starred_url":"https://api.github.com/users/fstrudel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fstrudel/subscriptions","organizations_url":"https://api.github.com/users/fstrudel/orgs","repos_url":"https://api.github.com/users/fstrudel/repos","events_url":"https://api.github.com/users/fstrudel/events{/privacy}","received_events_url":"https://api.github.com/users/fstrudel/received_events","type":"User","site_admin":false},"assignees":[{"login":"fstrudel","id":1244567,"avatar_url":"https://avatars.githubusercontent.com/u/1244567?v=3","gravatar_id":"","url":"https://api.github.com/users/fstrudel","html_url":"https://github.com/fstrudel","followers_url":"https://api.github.com/users/fstrudel/followers","following_url":"https://api.github.com/users/fstrudel/following{/other_user}","gists_url":"https://api.github.com/users/fstrudel/gists{/gist_id}","starred_url":"https://api.github.com/users/fstrudel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fstrudel/subscriptions","organizations_url":"https://api.github.com/users/fstrudel/orgs","repos_url":"https://api.github.com/users/fstrudel/repos","events_url":"https://api.github.com/users/fstrudel/events{/privacy}","received_events_url":"https://api.github.com/users/fstrudel/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/vmware/priam/pulls/7/commits","review_comments_url":"https://api.github.com/repos/vmware/priam/pulls/7/comments","review_comment_url":"https://api.github.com/repos/vmware/priam/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vmware/priam/issues/7/comments","statuses_url":"https://api.github.com/repos/vmware/priam/statuses/ab4efe6eaeaa95b1cfe5c5bf178894f14729a94f","head":{"label":"daleolds:master","ref":"master","sha":"ab4efe6eaeaa95b1cfe5c5bf178894f14729a94f","user":{"login":"daleolds","id":652924,"avatar_url":"https://avatars.githubusercontent.com/u/652924?v=3","gravatar_id":"","url":"https://api.github.com/users/daleolds","html_url":"https://github.com/daleolds","followers_url":"https://api.github.com/users/daleolds/followers","following_url":"https://api.github.com/users/daleolds/following{/other_user}","gists_url":"https://api.github.com/users/daleolds/gists{/gist_id}","starred_url":"https://api.github.com/users/daleolds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daleolds/subscriptions","organizations_url":"https://api.github.com/users/daleolds/orgs","repos_url":"https://api.github.com/users/daleolds/repos","events_url":"https://api.github.com/users/daleolds/events{/privacy}","received_events_url":"https://api.github.com/users/daleolds/received_events","type":"User","site_admin":false},"repo":{"id":68319923,"name":"priam","full_name":"daleolds/priam","owner":{"login":"daleolds","id":652924,"avatar_url":"https://avatars.githubusercontent.com/u/652924?v=3","gravatar_id":"","url":"https://api.github.com/users/daleolds","html_url":"https://github.com/daleolds","followers_url":"https://api.github.com/users/daleolds/followers","following_url":"https://api.github.com/users/daleolds/following{/other_user}","gists_url":"https://api.github.com/users/daleolds/gists{/gist_id}","starred_url":"https://api.github.com/users/daleolds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daleolds/subscriptions","organizations_url":"https://api.github.com/users/daleolds/orgs","repos_url":"https://api.github.com/users/daleolds/repos","events_url":"https://api.github.com/users/daleolds/events{/privacy}","received_events_url":"https://api.github.com/users/daleolds/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/daleolds/priam","description":"Go CLI tool for VMware Identity Manager portal","fork":true,"url":"https://api.github.com/repos/daleolds/priam","forks_url":"https://api.github.com/repos/daleolds/priam/forks","keys_url":"https://api.github.com/repos/daleolds/priam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daleolds/priam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daleolds/priam/teams","hooks_url":"https://api.github.com/repos/daleolds/priam/hooks","issue_events_url":"https://api.github.com/repos/daleolds/priam/issues/events{/number}","events_url":"https://api.github.com/repos/daleolds/priam/events","assignees_url":"https://api.github.com/repos/daleolds/priam/assignees{/user}","branches_url":"https://api.github.com/repos/daleolds/priam/branches{/branch}","tags_url":"https://api.github.com/repos/daleolds/priam/tags","blobs_url":"https://api.github.com/repos/daleolds/priam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daleolds/priam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daleolds/priam/git/refs{/sha}","trees_url":"https://api.github.com/repos/daleolds/priam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daleolds/priam/statuses/{sha}","languages_url":"https://api.github.com/repos/daleolds/priam/languages","stargazers_url":"https://api.github.com/repos/daleolds/priam/stargazers","contributors_url":"https://api.github.com/repos/daleolds/priam/contributors","subscribers_url":"https://api.github.com/repos/daleolds/priam/subscribers","subscription_url":"https://api.github.com/repos/daleolds/priam/subscription","commits_url":"https://api.github.com/repos/daleolds/priam/commits{/sha}","git_commits_url":"https://api.github.com/repos/daleolds/priam/git/commits{/sha}","comments_url":"https://api.github.com/repos/daleolds/priam/comments{/number}","issue_comment_url":"https://api.github.com/repos/daleolds/priam/issues/comments{/number}","contents_url":"https://api.github.com/repos/daleolds/priam/contents/{+path}","compare_url":"https://api.github.com/repos/daleolds/priam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daleolds/priam/merges","archive_url":"https://api.github.com/repos/daleolds/priam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daleolds/priam/downloads","issues_url":"https://api.github.com/repos/daleolds/priam/issues{/number}","pulls_url":"https://api.github.com/repos/daleolds/priam/pulls{/number}","milestones_url":"https://api.github.com/repos/daleolds/priam/milestones{/number}","notifications_url":"https://api.github.com/repos/daleolds/priam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daleolds/priam/labels{/name}","releases_url":"https://api.github.com/repos/daleolds/priam/releases{/id}","deployments_url":"https://api.github.com/repos/daleolds/priam/deployments","created_at":"2016-09-15T18:23:27Z","updated_at":"2016-09-15T18:23:28Z","pushed_at":"2016-09-26T18:55:47Z","git_url":"git://github.com/daleolds/priam.git","ssh_url":"git@github.com:daleolds/priam.git","clone_url":"https://github.com/daleolds/priam.git","svn_url":"https://github.com/daleolds/priam","homepage":null,"size":202,"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":"27625434937f45a063cc3dcff90dd9cacc1380b7","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":66985132,"name":"priam","full_name":"vmware/priam","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/priam","description":"Go CLI tool for VMware Identity Manager portal","fork":false,"url":"https://api.github.com/repos/vmware/priam","forks_url":"https://api.github.com/repos/vmware/priam/forks","keys_url":"https://api.github.com/repos/vmware/priam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vmware/priam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vmware/priam/teams","hooks_url":"https://api.github.com/repos/vmware/priam/hooks","issue_events_url":"https://api.github.com/repos/vmware/priam/issues/events{/number}","events_url":"https://api.github.com/repos/vmware/priam/events","assignees_url":"https://api.github.com/repos/vmware/priam/assignees{/user}","branches_url":"https://api.github.com/repos/vmware/priam/branches{/branch}","tags_url":"https://api.github.com/repos/vmware/priam/tags","blobs_url":"https://api.github.com/repos/vmware/priam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vmware/priam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vmware/priam/git/refs{/sha}","trees_url":"https://api.github.com/repos/vmware/priam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vmware/priam/statuses/{sha}","languages_url":"https://api.github.com/repos/vmware/priam/languages","stargazers_url":"https://api.github.com/repos/vmware/priam/stargazers","contributors_url":"https://api.github.com/repos/vmware/priam/contributors","subscribers_url":"https://api.github.com/repos/vmware/priam/subscribers","subscription_url":"https://api.github.com/repos/vmware/priam/subscription","commits_url":"https://api.github.com/repos/vmware/priam/commits{/sha}","git_commits_url":"https://api.github.com/repos/vmware/priam/git/commits{/sha}","comments_url":"https://api.github.com/repos/vmware/priam/comments{/number}","issue_comment_url":"https://api.github.com/repos/vmware/priam/issues/comments{/number}","contents_url":"https://api.github.com/repos/vmware/priam/contents/{+path}","compare_url":"https://api.github.com/repos/vmware/priam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vmware/priam/merges","archive_url":"https://api.github.com/repos/vmware/priam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vmware/priam/downloads","issues_url":"https://api.github.com/repos/vmware/priam/issues{/number}","pulls_url":"https://api.github.com/repos/vmware/priam/pulls{/number}","milestones_url":"https://api.github.com/repos/vmware/priam/milestones{/number}","notifications_url":"https://api.github.com/repos/vmware/priam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vmware/priam/labels{/name}","releases_url":"https://api.github.com/repos/vmware/priam/releases{/id}","deployments_url":"https://api.github.com/repos/vmware/priam/deployments","created_at":"2016-08-30T23:29:50Z","updated_at":"2016-09-08T09:32:46Z","pushed_at":"2016-09-26T21:14:04Z","git_url":"git://github.com/vmware/priam.git","ssh_url":"git@github.com:vmware/priam.git","clone_url":"https://github.com/vmware/priam.git","svn_url":"https://github.com/vmware/priam","homepage":null,"size":205,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vmware/priam/pulls/7"},"html":{"href":"https://github.com/vmware/priam/pull/7"},"issue":{"href":"https://api.github.com/repos/vmware/priam/issues/7"},"comments":{"href":"https://api.github.com/repos/vmware/priam/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/vmware/priam/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/vmware/priam/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vmware/priam/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/vmware/priam/statuses/ab4efe6eaeaa95b1cfe5c5bf178894f14729a94f"}}}}
{"actor":{"display_login":"fstrudel"}}