{"action":"opened","number":832,"pull_request":{"url":"https://api.github.com/repos/dcos/dcos-cli/pulls/832","id":93557817,"html_url":"https://github.com/dcos/dcos-cli/pull/832","diff_url":"https://github.com/dcos/dcos-cli/pull/832.diff","patch_url":"https://github.com/dcos/dcos-cli/pull/832.patch","issue_url":"https://api.github.com/repos/dcos/dcos-cli/issues/832","number":832,"state":"open","locked":false,"title":"[WIP] added cli options for declined offers","user":{"login":"unterstein","id":904420,"avatar_url":"https://avatars.githubusercontent.com/u/904420?v=3","gravatar_id":"","url":"https://api.github.com/users/unterstein","html_url":"https://github.com/unterstein","followers_url":"https://api.github.com/users/unterstein/followers","following_url":"https://api.github.com/users/unterstein/following{/other_user}","gists_url":"https://api.github.com/users/unterstein/gists{/gist_id}","starred_url":"https://api.github.com/users/unterstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unterstein/subscriptions","organizations_url":"https://api.github.com/users/unterstein/orgs","repos_url":"https://api.github.com/users/unterstein/repos","events_url":"https://api.github.com/users/unterstein/events{/privacy}","received_events_url":"https://api.github.com/users/unterstein/received_events","type":"User","site_admin":false},"body":"Looking for feedback for the CLI code, tests will follow. Here some examples:\r\n\r\n```\r\nJohanness-MacBook-Pro:cli junterstein$ dcos marathon launchqueue list\r\nID        SINCE                     INSTANCES TO LAUNCH  OVERDUE  PROCESSED OFFERS  UNUSED OFFERS  LAST UNUSED OFFER         LAST USED OFFER           \r\n/sleeper  2016-11-14T09:57:09.315Z  9                    True     66                65             2016-11-14T12:22:28.555Z  2016-11-14T09:57:09.496Z  \r\nJohanness-MacBook-Pro:cli junterstein$ dcos marathon launchqueue show /sleeper\r\nRESOURCE     REQUESTED                 DECLINED  DECLINED PERCENTAGE  \r\nCONSTRAINTS  [['hostname', 'UNIQUE']]  33 / 34   97.06%               \r\nROLE         *                         32 / 66   48.48%               \r\nPORTS        [10000]                   0 / 1     0.00%                \r\nMEM          128                       0 / 1     0.00%                \r\nGPUS         0                         0 / 1     0.00%                \r\nDISK         0                         0 / 1     0.00%                \r\nCPUS         1                         0 / 1     0.00%                \r\nJohanness-MacBook-Pro:cli junterstein$ dcos marathon launchqueue show /sleeper --details\r\nRESOURCE     REQUESTED                 DECLINED  DECLINED PERCENTAGE  \r\nCONSTRAINTS  [['hostname', 'UNIQUE']]  33 / 34   97.06%               \r\nROLE         *                         32 / 66   48.48%               \r\nPORTS        [10000]                   0 / 1     0.00%                \r\nMEM          128                       0 / 1     0.00%                \r\nGPUS         0                         0 / 1     0.00%                \r\nDISK         0                         0 / 1     0.00%                \r\nCPUS         1                         0 / 1     0.00%                \r\n\r\nHOSTNAME    REASON                                                 RECEIVED                  \r\n10.0.2.41   UnfulfilledConstraint                                  2016-11-14T12:22:28.555Z  \r\n10.0.6.163  InsufficientCpus, InsufficientMemory, UnfulfilledRole  2016-11-14T12:22:28.555Z \r\n```","created_at":"2016-11-14T12:27:55Z","updated_at":"2016-11-14T12:27:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dcos/dcos-cli/pulls/832/commits","review_comments_url":"https://api.github.com/repos/dcos/dcos-cli/pulls/832/comments","review_comment_url":"https://api.github.com/repos/dcos/dcos-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dcos/dcos-cli/issues/832/comments","statuses_url":"https://api.github.com/repos/dcos/dcos-cli/statuses/57bcf6140bca60a30f0673831f9f2dbbd1756dd7","head":{"label":"unterstein:ju/declined-offers-cli","ref":"ju/declined-offers-cli","sha":"57bcf6140bca60a30f0673831f9f2dbbd1756dd7","user":{"login":"unterstein","id":904420,"avatar_url":"https://avatars.githubusercontent.com/u/904420?v=3","gravatar_id":"","url":"https://api.github.com/users/unterstein","html_url":"https://github.com/unterstein","followers_url":"https://api.github.com/users/unterstein/followers","following_url":"https://api.github.com/users/unterstein/following{/other_user}","gists_url":"https://api.github.com/users/unterstein/gists{/gist_id}","starred_url":"https://api.github.com/users/unterstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unterstein/subscriptions","organizations_url":"https://api.github.com/users/unterstein/orgs","repos_url":"https://api.github.com/users/unterstein/repos","events_url":"https://api.github.com/users/unterstein/events{/privacy}","received_events_url":"https://api.github.com/users/unterstein/received_events","type":"User","site_admin":false},"repo":{"id":73378066,"name":"dcos-cli","full_name":"unterstein/dcos-cli","owner":{"login":"unterstein","id":904420,"avatar_url":"https://avatars.githubusercontent.com/u/904420?v=3","gravatar_id":"","url":"https://api.github.com/users/unterstein","html_url":"https://github.com/unterstein","followers_url":"https://api.github.com/users/unterstein/followers","following_url":"https://api.github.com/users/unterstein/following{/other_user}","gists_url":"https://api.github.com/users/unterstein/gists{/gist_id}","starred_url":"https://api.github.com/users/unterstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unterstein/subscriptions","organizations_url":"https://api.github.com/users/unterstein/orgs","repos_url":"https://api.github.com/users/unterstein/repos","events_url":"https://api.github.com/users/unterstein/events{/privacy}","received_events_url":"https://api.github.com/users/unterstein/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/unterstein/dcos-cli","description":"The command line for your datacenter! ","fork":true,"url":"https://api.github.com/repos/unterstein/dcos-cli","forks_url":"https://api.github.com/repos/unterstein/dcos-cli/forks","keys_url":"https://api.github.com/repos/unterstein/dcos-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/unterstein/dcos-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/unterstein/dcos-cli/teams","hooks_url":"https://api.github.com/repos/unterstein/dcos-cli/hooks","issue_events_url":"https://api.github.com/repos/unterstein/dcos-cli/issues/events{/number}","events_url":"https://api.github.com/repos/unterstein/dcos-cli/events","assignees_url":"https://api.github.com/repos/unterstein/dcos-cli/assignees{/user}","branches_url":"https://api.github.com/repos/unterstein/dcos-cli/branches{/branch}","tags_url":"https://api.github.com/repos/unterstein/dcos-cli/tags","blobs_url":"https://api.github.com/repos/unterstein/dcos-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/unterstein/dcos-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/unterstein/dcos-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/unterstein/dcos-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/unterstein/dcos-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/unterstein/dcos-cli/languages","stargazers_url":"https://api.github.com/repos/unterstein/dcos-cli/stargazers","contributors_url":"https://api.github.com/repos/unterstein/dcos-cli/contributors","subscribers_url":"https://api.github.com/repos/unterstein/dcos-cli/subscribers","subscription_url":"https://api.github.com/repos/unterstein/dcos-cli/subscription","commits_url":"https://api.github.com/repos/unterstein/dcos-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/unterstein/dcos-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/unterstein/dcos-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/unterstein/dcos-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/unterstein/dcos-cli/contents/{+path}","compare_url":"https://api.github.com/repos/unterstein/dcos-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/unterstein/dcos-cli/merges","archive_url":"https://api.github.com/repos/unterstein/dcos-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/unterstein/dcos-cli/downloads","issues_url":"https://api.github.com/repos/unterstein/dcos-cli/issues{/number}","pulls_url":"https://api.github.com/repos/unterstein/dcos-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/unterstein/dcos-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/unterstein/dcos-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/unterstein/dcos-cli/labels{/name}","releases_url":"https://api.github.com/repos/unterstein/dcos-cli/releases{/id}","deployments_url":"https://api.github.com/repos/unterstein/dcos-cli/deployments","created_at":"2016-11-10T12:00:56Z","updated_at":"2016-11-10T12:00:57Z","pushed_at":"2016-11-14T12:27:19Z","git_url":"git://github.com/unterstein/dcos-cli.git","ssh_url":"git@github.com:unterstein/dcos-cli.git","clone_url":"https://github.com/unterstein/dcos-cli.git","svn_url":"https://github.com/unterstein/dcos-cli","homepage":"https://dcos.io/docs/latest/usage/cli/","size":11007,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"dcos:master","ref":"master","sha":"352e45c83659426f34d8e321db5ce7cbc8ab38b4","user":{"login":"dcos","id":17648048,"avatar_url":"https://avatars.githubusercontent.com/u/17648048?v=3","gravatar_id":"","url":"https://api.github.com/users/dcos","html_url":"https://github.com/dcos","followers_url":"https://api.github.com/users/dcos/followers","following_url":"https://api.github.com/users/dcos/following{/other_user}","gists_url":"https://api.github.com/users/dcos/gists{/gist_id}","starred_url":"https://api.github.com/users/dcos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcos/subscriptions","organizations_url":"https://api.github.com/users/dcos/orgs","repos_url":"https://api.github.com/users/dcos/repos","events_url":"https://api.github.com/users/dcos/events{/privacy}","received_events_url":"https://api.github.com/users/dcos/received_events","type":"Organization","site_admin":false},"repo":{"id":26653348,"name":"dcos-cli","full_name":"dcos/dcos-cli","owner":{"login":"dcos","id":17648048,"avatar_url":"https://avatars.githubusercontent.com/u/17648048?v=3","gravatar_id":"","url":"https://api.github.com/users/dcos","html_url":"https://github.com/dcos","followers_url":"https://api.github.com/users/dcos/followers","following_url":"https://api.github.com/users/dcos/following{/other_user}","gists_url":"https://api.github.com/users/dcos/gists{/gist_id}","starred_url":"https://api.github.com/users/dcos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcos/subscriptions","organizations_url":"https://api.github.com/users/dcos/orgs","repos_url":"https://api.github.com/users/dcos/repos","events_url":"https://api.github.com/users/dcos/events{/privacy}","received_events_url":"https://api.github.com/users/dcos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dcos/dcos-cli","description":"The command line for your datacenter! ","fork":false,"url":"https://api.github.com/repos/dcos/dcos-cli","forks_url":"https://api.github.com/repos/dcos/dcos-cli/forks","keys_url":"https://api.github.com/repos/dcos/dcos-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dcos/dcos-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dcos/dcos-cli/teams","hooks_url":"https://api.github.com/repos/dcos/dcos-cli/hooks","issue_events_url":"https://api.github.com/repos/dcos/dcos-cli/issues/events{/number}","events_url":"https://api.github.com/repos/dcos/dcos-cli/events","assignees_url":"https://api.github.com/repos/dcos/dcos-cli/assignees{/user}","branches_url":"https://api.github.com/repos/dcos/dcos-cli/branches{/branch}","tags_url":"https://api.github.com/repos/dcos/dcos-cli/tags","blobs_url":"https://api.github.com/repos/dcos/dcos-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dcos/dcos-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dcos/dcos-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/dcos/dcos-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dcos/dcos-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/dcos/dcos-cli/languages","stargazers_url":"https://api.github.com/repos/dcos/dcos-cli/stargazers","contributors_url":"https://api.github.com/repos/dcos/dcos-cli/contributors","subscribers_url":"https://api.github.com/repos/dcos/dcos-cli/subscribers","subscription_url":"https://api.github.com/repos/dcos/dcos-cli/subscription","commits_url":"https://api.github.com/repos/dcos/dcos-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/dcos/dcos-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/dcos/dcos-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/dcos/dcos-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/dcos/dcos-cli/contents/{+path}","compare_url":"https://api.github.com/repos/dcos/dcos-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dcos/dcos-cli/merges","archive_url":"https://api.github.com/repos/dcos/dcos-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dcos/dcos-cli/downloads","issues_url":"https://api.github.com/repos/dcos/dcos-cli/issues{/number}","pulls_url":"https://api.github.com/repos/dcos/dcos-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/dcos/dcos-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/dcos/dcos-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dcos/dcos-cli/labels{/name}","releases_url":"https://api.github.com/repos/dcos/dcos-cli/releases{/id}","deployments_url":"https://api.github.com/repos/dcos/dcos-cli/deployments","created_at":"2014-11-14T19:11:48Z","updated_at":"2016-10-24T18:13:54Z","pushed_at":"2016-11-11T15:26:16Z","git_url":"git://github.com/dcos/dcos-cli.git","ssh_url":"git@github.com:dcos/dcos-cli.git","clone_url":"https://github.com/dcos/dcos-cli.git","svn_url":"https://github.com/dcos/dcos-cli","homepage":"https://dcos.io/docs/latest/usage/cli/","size":11023,"stargazers_count":174,"watchers_count":174,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":80,"mirror_url":null,"open_issues_count":39,"forks":80,"open_issues":39,"watchers":174,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dcos/dcos-cli/pulls/832"},"html":{"href":"https://github.com/dcos/dcos-cli/pull/832"},"issue":{"href":"https://api.github.com/repos/dcos/dcos-cli/issues/832"},"comments":{"href":"https://api.github.com/repos/dcos/dcos-cli/issues/832/comments"},"review_comments":{"href":"https://api.github.com/repos/dcos/dcos-cli/pulls/832/comments"},"review_comment":{"href":"https://api.github.com/repos/dcos/dcos-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dcos/dcos-cli/pulls/832/commits"},"statuses":{"href":"https://api.github.com/repos/dcos/dcos-cli/statuses/57bcf6140bca60a30f0673831f9f2dbbd1756dd7"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":12,"additions":277,"deletions":0,"changed_files":5}}
{"actor":{"display_login":"unterstein"}}