{"action":"created","comment":{"url":"https://api.github.com/repos/mesosphere/mesos-cli/pulls/comments/25113542","id":25113542,"diff_hunk":"@@ -0,0 +1,144 @@\n+# Licensed to the Apache Software Foundation (ASF) under one\n+# or more contributor license agreements.  See the NOTICE file\n+# distributed with this work for additional information\n+# regarding copyright ownership.  The ASF licenses this file\n+# to you under the Apache License, Version 2.0 (the\n+# \"License\"); you may not use this file except in compliance\n+# with the License.  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+\n+from __future__ import absolute_import, print_function\n+\n+import blessings\n+import prettytable\n+\n+from .. import cli\n+from ..master import CURRENT as MASTER\n+\n+try:\n+    from collections import OrderedDict\n+except ImportError:\n+    from ordereddict import OrderedDict\n+\n+\n+parser = cli.parser(\n+    description=\"frameworks list\"\n+)\n+\n+parser.add_argument(\n+    \"-t\", \"--task-breakdown\", action=\"store_true\",\n+    help=\"show task status breakdown\"\n+)\n+\n+parser.add_argument(\n+    \"-i\", \"--inactive\", action=\"store_true\",\n+    help=\"show inactive frameworks as well\"\n+)\n+\n+\n+class TaskStats:","path":"mesos/cli/cmds/frameworks.py","position":47,"original_position":47,"commit_id":"0b3dfc8e13172f0ed0fdede888acacff021784c7","original_commit_id":"0b3dfc8e13172f0ed0fdede888acacff021784c7","user":{"login":"pyronicide","id":47992,"avatar_url":"https://avatars.githubusercontent.com/u/47992?v=3","gravatar_id":"","url":"https://api.github.com/users/pyronicide","html_url":"https://github.com/pyronicide","followers_url":"https://api.github.com/users/pyronicide/followers","following_url":"https://api.github.com/users/pyronicide/following{/other_user}","gists_url":"https://api.github.com/users/pyronicide/gists{/gist_id}","starred_url":"https://api.github.com/users/pyronicide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyronicide/subscriptions","organizations_url":"https://api.github.com/users/pyronicide/orgs","repos_url":"https://api.github.com/users/pyronicide/repos","events_url":"https://api.github.com/users/pyronicide/events{/privacy}","received_events_url":"https://api.github.com/users/pyronicide/received_events","type":"User","site_admin":false},"body":"As a rule, memoization is used extensively throughout the mesos-cli codebase. This should be baked directly into the native objects themselves.","created_at":"2015-02-20T23:51:03Z","updated_at":"2015-02-20T23:51:03Z","html_url":"https://github.com/mesosphere/mesos-cli/pull/58#discussion_r25113542","pull_request_url":"https://api.github.com/repos/mesosphere/mesos-cli/pulls/58","_links":{"self":{"href":"https://api.github.com/repos/mesosphere/mesos-cli/pulls/comments/25113542"},"html":{"href":"https://github.com/mesosphere/mesos-cli/pull/58#discussion_r25113542"},"pull_request":{"href":"https://api.github.com/repos/mesosphere/mesos-cli/pulls/58"}}},"pull_request":{"url":"https://api.github.com/repos/mesosphere/mesos-cli/pulls/58","id":29740893,"html_url":"https://github.com/mesosphere/mesos-cli/pull/58","diff_url":"https://github.com/mesosphere/mesos-cli/pull/58.diff","patch_url":"https://github.com/mesosphere/mesos-cli/pull/58.patch","issue_url":"https://api.github.com/repos/mesosphere/mesos-cli/issues/58","number":58,"state":"open","locked":false,"title":"{preview}: added framework list command - fixes #51","user":{"login":"mahdibh","id":602733,"avatar_url":"https://avatars.githubusercontent.com/u/602733?v=3","gravatar_id":"","url":"https://api.github.com/users/mahdibh","html_url":"https://github.com/mahdibh","followers_url":"https://api.github.com/users/mahdibh/followers","following_url":"https://api.github.com/users/mahdibh/following{/other_user}","gists_url":"https://api.github.com/users/mahdibh/gists{/gist_id}","starred_url":"https://api.github.com/users/mahdibh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahdibh/subscriptions","organizations_url":"https://api.github.com/users/mahdibh/orgs","repos_url":"https://api.github.com/users/mahdibh/repos","events_url":"https://api.github.com/users/mahdibh/events{/privacy}","received_events_url":"https://api.github.com/users/mahdibh/received_events","type":"User","site_admin":false},"body":"This adds the framework list command.","created_at":"2015-02-20T23:32:48Z","updated_at":"2015-02-20T23:51:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"37109a5d9a227a9eb840a9e6e6c6036380a9a7e0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mesosphere/mesos-cli/pulls/58/commits","review_comments_url":"https://api.github.com/repos/mesosphere/mesos-cli/pulls/58/comments","review_comment_url":"https://api.github.com/repos/mesosphere/mesos-cli/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mesosphere/mesos-cli/issues/58/comments","statuses_url":"https://api.github.com/repos/mesosphere/mesos-cli/statuses/0b3dfc8e13172f0ed0fdede888acacff021784c7","head":{"label":"mahdibh:master","ref":"master","sha":"0b3dfc8e13172f0ed0fdede888acacff021784c7","user":{"login":"mahdibh","id":602733,"avatar_url":"https://avatars.githubusercontent.com/u/602733?v=3","gravatar_id":"","url":"https://api.github.com/users/mahdibh","html_url":"https://github.com/mahdibh","followers_url":"https://api.github.com/users/mahdibh/followers","following_url":"https://api.github.com/users/mahdibh/following{/other_user}","gists_url":"https://api.github.com/users/mahdibh/gists{/gist_id}","starred_url":"https://api.github.com/users/mahdibh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahdibh/subscriptions","organizations_url":"https://api.github.com/users/mahdibh/orgs","repos_url":"https://api.github.com/users/mahdibh/repos","events_url":"https://api.github.com/users/mahdibh/events{/privacy}","received_events_url":"https://api.github.com/users/mahdibh/received_events","type":"User","site_admin":false},"repo":{"id":31090392,"name":"mesos-cli","full_name":"mahdibh/mesos-cli","owner":{"login":"mahdibh","id":602733,"avatar_url":"https://avatars.githubusercontent.com/u/602733?v=3","gravatar_id":"","url":"https://api.github.com/users/mahdibh","html_url":"https://github.com/mahdibh","followers_url":"https://api.github.com/users/mahdibh/followers","following_url":"https://api.github.com/users/mahdibh/following{/other_user}","gists_url":"https://api.github.com/users/mahdibh/gists{/gist_id}","starred_url":"https://api.github.com/users/mahdibh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahdibh/subscriptions","organizations_url":"https://api.github.com/users/mahdibh/orgs","repos_url":"https://api.github.com/users/mahdibh/repos","events_url":"https://api.github.com/users/mahdibh/events{/privacy}","received_events_url":"https://api.github.com/users/mahdibh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mahdibh/mesos-cli","description":"A command line interface for your Apache Mesos cluster","fork":true,"url":"https://api.github.com/repos/mahdibh/mesos-cli","forks_url":"https://api.github.com/repos/mahdibh/mesos-cli/forks","keys_url":"https://api.github.com/repos/mahdibh/mesos-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mahdibh/mesos-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mahdibh/mesos-cli/teams","hooks_url":"https://api.github.com/repos/mahdibh/mesos-cli/hooks","issue_events_url":"https://api.github.com/repos/mahdibh/mesos-cli/issues/events{/number}","events_url":"https://api.github.com/repos/mahdibh/mesos-cli/events","assignees_url":"https://api.github.com/repos/mahdibh/mesos-cli/assignees{/user}","branches_url":"https://api.github.com/repos/mahdibh/mesos-cli/branches{/branch}","tags_url":"https://api.github.com/repos/mahdibh/mesos-cli/tags","blobs_url":"https://api.github.com/repos/mahdibh/mesos-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mahdibh/mesos-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mahdibh/mesos-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/mahdibh/mesos-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mahdibh/mesos-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/mahdibh/mesos-cli/languages","stargazers_url":"https://api.github.com/repos/mahdibh/mesos-cli/stargazers","contributors_url":"https://api.github.com/repos/mahdibh/mesos-cli/contributors","subscribers_url":"https://api.github.com/repos/mahdibh/mesos-cli/subscribers","subscription_url":"https://api.github.com/repos/mahdibh/mesos-cli/subscription","commits_url":"https://api.github.com/repos/mahdibh/mesos-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/mahdibh/mesos-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/mahdibh/mesos-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/mahdibh/mesos-cli/issues/comments/{number}","contents_url":"https://api.github.com/repos/mahdibh/mesos-cli/contents/{+path}","compare_url":"https://api.github.com/repos/mahdibh/mesos-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mahdibh/mesos-cli/merges","archive_url":"https://api.github.com/repos/mahdibh/mesos-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mahdibh/mesos-cli/downloads","issues_url":"https://api.github.com/repos/mahdibh/mesos-cli/issues{/number}","pulls_url":"https://api.github.com/repos/mahdibh/mesos-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/mahdibh/mesos-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/mahdibh/mesos-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mahdibh/mesos-cli/labels{/name}","releases_url":"https://api.github.com/repos/mahdibh/mesos-cli/releases{/id}","created_at":"2015-02-20T23:29:13Z","updated_at":"2015-02-20T23:31:07Z","pushed_at":"2015-02-20T23:31:07Z","git_url":"git://github.com/mahdibh/mesos-cli.git","ssh_url":"git@github.com:mahdibh/mesos-cli.git","clone_url":"https://github.com/mahdibh/mesos-cli.git","svn_url":"https://github.com/mahdibh/mesos-cli","homepage":"","size":923,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"mesosphere:master","ref":"master","sha":"2576cde2717538d9713437e1cc201a167e34e2ef","user":{"login":"mesosphere","id":3458585,"avatar_url":"https://avatars.githubusercontent.com/u/3458585?v=3","gravatar_id":"","url":"https://api.github.com/users/mesosphere","html_url":"https://github.com/mesosphere","followers_url":"https://api.github.com/users/mesosphere/followers","following_url":"https://api.github.com/users/mesosphere/following{/other_user}","gists_url":"https://api.github.com/users/mesosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/mesosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesosphere/subscriptions","organizations_url":"https://api.github.com/users/mesosphere/orgs","repos_url":"https://api.github.com/users/mesosphere/repos","events_url":"https://api.github.com/users/mesosphere/events{/privacy}","received_events_url":"https://api.github.com/users/mesosphere/received_events","type":"Organization","site_admin":false},"repo":{"id":21018578,"name":"mesos-cli","full_name":"mesosphere/mesos-cli","owner":{"login":"mesosphere","id":3458585,"avatar_url":"https://avatars.githubusercontent.com/u/3458585?v=3","gravatar_id":"","url":"https://api.github.com/users/mesosphere","html_url":"https://github.com/mesosphere","followers_url":"https://api.github.com/users/mesosphere/followers","following_url":"https://api.github.com/users/mesosphere/following{/other_user}","gists_url":"https://api.github.com/users/mesosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/mesosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesosphere/subscriptions","organizations_url":"https://api.github.com/users/mesosphere/orgs","repos_url":"https://api.github.com/users/mesosphere/repos","events_url":"https://api.github.com/users/mesosphere/events{/privacy}","received_events_url":"https://api.github.com/users/mesosphere/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mesosphere/mesos-cli","description":"A command line interface for your Apache Mesos cluster","fork":false,"url":"https://api.github.com/repos/mesosphere/mesos-cli","forks_url":"https://api.github.com/repos/mesosphere/mesos-cli/forks","keys_url":"https://api.github.com/repos/mesosphere/mesos-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mesosphere/mesos-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mesosphere/mesos-cli/teams","hooks_url":"https://api.github.com/repos/mesosphere/mesos-cli/hooks","issue_events_url":"https://api.github.com/repos/mesosphere/mesos-cli/issues/events{/number}","events_url":"https://api.github.com/repos/mesosphere/mesos-cli/events","assignees_url":"https://api.github.com/repos/mesosphere/mesos-cli/assignees{/user}","branches_url":"https://api.github.com/repos/mesosphere/mesos-cli/branches{/branch}","tags_url":"https://api.github.com/repos/mesosphere/mesos-cli/tags","blobs_url":"https://api.github.com/repos/mesosphere/mesos-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mesosphere/mesos-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mesosphere/mesos-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/mesosphere/mesos-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mesosphere/mesos-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/mesosphere/mesos-cli/languages","stargazers_url":"https://api.github.com/repos/mesosphere/mesos-cli/stargazers","contributors_url":"https://api.github.com/repos/mesosphere/mesos-cli/contributors","subscribers_url":"https://api.github.com/repos/mesosphere/mesos-cli/subscribers","subscription_url":"https://api.github.com/repos/mesosphere/mesos-cli/subscription","commits_url":"https://api.github.com/repos/mesosphere/mesos-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/mesosphere/mesos-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/mesosphere/mesos-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/mesosphere/mesos-cli/issues/comments/{number}","contents_url":"https://api.github.com/repos/mesosphere/mesos-cli/contents/{+path}","compare_url":"https://api.github.com/repos/mesosphere/mesos-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mesosphere/mesos-cli/merges","archive_url":"https://api.github.com/repos/mesosphere/mesos-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mesosphere/mesos-cli/downloads","issues_url":"https://api.github.com/repos/mesosphere/mesos-cli/issues{/number}","pulls_url":"https://api.github.com/repos/mesosphere/mesos-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/mesosphere/mesos-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/mesosphere/mesos-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mesosphere/mesos-cli/labels{/name}","releases_url":"https://api.github.com/repos/mesosphere/mesos-cli/releases{/id}","created_at":"2014-06-19T23:06:34Z","updated_at":"2015-02-20T16:53:27Z","pushed_at":"2015-02-12T16:59:21Z","git_url":"git://github.com/mesosphere/mesos-cli.git","ssh_url":"git@github.com:mesosphere/mesos-cli.git","clone_url":"https://github.com/mesosphere/mesos-cli.git","svn_url":"https://github.com/mesosphere/mesos-cli","homepage":"","size":923,"stargazers_count":77,"watchers_count":77,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":22,"forks":17,"open_issues":22,"watchers":77,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mesosphere/mesos-cli/pulls/58"},"html":{"href":"https://github.com/mesosphere/mesos-cli/pull/58"},"issue":{"href":"https://api.github.com/repos/mesosphere/mesos-cli/issues/58"},"comments":{"href":"https://api.github.com/repos/mesosphere/mesos-cli/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/mesosphere/mesos-cli/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/mesosphere/mesos-cli/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mesosphere/mesos-cli/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/mesosphere/mesos-cli/statuses/0b3dfc8e13172f0ed0fdede888acacff021784c7"}}}}