{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/comments/56737754","id":56737754,"diff_hunk":"@@ -195,21 +195,42 @@ _.extend(ExtendedCommand.prototype, {\n     return result;\n   },\n \n-  helpCategories: function(levels) {\n+  helpCategories: function(levels, depth) {\n+    if (typeof depth === 'undefined') {\n+      depth = 0;\n+    }\n+\n     for (var name in this.categories) {\n       var cat = this.categories[name];\n-\n-      this.output.help('');\n-\n-      this.output.help(cat.description().cyan);\n+      if (depth < 1) {\n+        this.output.help('');\n+        this.output.help(cat.description().cyan);\n+      }\n \n       if (levels === -1 || levels > 0) {\n-        for (var index in cat.commands) {\n-          var cmd = cat.commands[index];\n-          this.output.help(' ', cmd.fullName() + ' ' + cmd.usage());\n+        var startsWith = function(a, b) {\n+          return a && b && a.substr(0, b.length) === b;\n+        };\n+        \n+        // Compress command names only for 'vmss config' category, i.e.\n+        // 'vmss config sku set' & 'vmss config sku delete' =>\n+        // 'vmss config sku set|delete'\n+        if (depth >= 1 && startsWith(cat.fullName(), 'vmss config ')) {\n+          var methods = [];","path":"lib/util/extendedcommand.js","position":33,"original_position":33,"commit_id":"3c53fcde10ca1c69e0ab11b86bf740d0b27bf161","original_commit_id":"3c53fcde10ca1c69e0ab11b86bf740d0b27bf161","user":{"login":"huangpf","id":3858524,"avatar_url":"https://avatars.githubusercontent.com/u/3858524?v=3","gravatar_id":"","url":"https://api.github.com/users/huangpf","html_url":"https://github.com/huangpf","followers_url":"https://api.github.com/users/huangpf/followers","following_url":"https://api.github.com/users/huangpf/following{/other_user}","gists_url":"https://api.github.com/users/huangpf/gists{/gist_id}","starred_url":"https://api.github.com/users/huangpf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangpf/subscriptions","organizations_url":"https://api.github.com/users/huangpf/orgs","repos_url":"https://api.github.com/users/huangpf/repos","events_url":"https://api.github.com/users/huangpf/events{/privacy}","received_events_url":"https://api.github.com/users/huangpf/received_events","type":"User","site_admin":false},"body":"ok","created_at":"2016-03-18T23:59:08Z","updated_at":"2016-03-18T23:59:08Z","html_url":"https://github.com/Azure/azure-xplat-cli/pull/2651#discussion_r56737754","pull_request_url":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/2651","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/comments/56737754"},"html":{"href":"https://github.com/Azure/azure-xplat-cli/pull/2651#discussion_r56737754"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/2651"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/2651","id":63289733,"html_url":"https://github.com/Azure/azure-xplat-cli/pull/2651","diff_url":"https://github.com/Azure/azure-xplat-cli/pull/2651.diff","patch_url":"https://github.com/Azure/azure-xplat-cli/pull/2651.patch","issue_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2651","number":2651,"state":"open","locked":false,"title":"[do not merge; review only] AzureCP PR : VMSS Commands","user":{"login":"huangpf","id":3858524,"avatar_url":"https://avatars.githubusercontent.com/u/3858524?v=3","gravatar_id":"","url":"https://api.github.com/users/huangpf","html_url":"https://github.com/huangpf","followers_url":"https://api.github.com/users/huangpf/followers","following_url":"https://api.github.com/users/huangpf/following{/other_user}","gists_url":"https://api.github.com/users/huangpf/gists{/gist_id}","starred_url":"https://api.github.com/users/huangpf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangpf/subscriptions","organizations_url":"https://api.github.com/users/huangpf/orgs","repos_url":"https://api.github.com/users/huangpf/repos","events_url":"https://api.github.com/users/huangpf/events{/privacy}","received_events_url":"https://api.github.com/users/huangpf/received_events","type":"User","site_admin":false},"body":"The content to be added to Changelog is as follows:\r\n* +VMSS Commands\r\n","created_at":"2016-03-17T20:44:51Z","updated_at":"2016-03-18T23:59:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8809da1aa3646e097f13721229bc274d65b4a791","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/2651/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/2651/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2651/comments","statuses_url":"https://api.github.com/repos/Azure/azure-xplat-cli/statuses/3c53fcde10ca1c69e0ab11b86bf740d0b27bf161","head":{"label":"huangpf:dev","ref":"dev","sha":"3c53fcde10ca1c69e0ab11b86bf740d0b27bf161","user":{"login":"huangpf","id":3858524,"avatar_url":"https://avatars.githubusercontent.com/u/3858524?v=3","gravatar_id":"","url":"https://api.github.com/users/huangpf","html_url":"https://github.com/huangpf","followers_url":"https://api.github.com/users/huangpf/followers","following_url":"https://api.github.com/users/huangpf/following{/other_user}","gists_url":"https://api.github.com/users/huangpf/gists{/gist_id}","starred_url":"https://api.github.com/users/huangpf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangpf/subscriptions","organizations_url":"https://api.github.com/users/huangpf/orgs","repos_url":"https://api.github.com/users/huangpf/repos","events_url":"https://api.github.com/users/huangpf/events{/privacy}","received_events_url":"https://api.github.com/users/huangpf/received_events","type":"User","site_admin":false},"repo":{"id":35979267,"name":"azure-xplat-cli","full_name":"huangpf/azure-xplat-cli","owner":{"login":"huangpf","id":3858524,"avatar_url":"https://avatars.githubusercontent.com/u/3858524?v=3","gravatar_id":"","url":"https://api.github.com/users/huangpf","html_url":"https://github.com/huangpf","followers_url":"https://api.github.com/users/huangpf/followers","following_url":"https://api.github.com/users/huangpf/following{/other_user}","gists_url":"https://api.github.com/users/huangpf/gists{/gist_id}","starred_url":"https://api.github.com/users/huangpf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangpf/subscriptions","organizations_url":"https://api.github.com/users/huangpf/orgs","repos_url":"https://api.github.com/users/huangpf/repos","events_url":"https://api.github.com/users/huangpf/events{/privacy}","received_events_url":"https://api.github.com/users/huangpf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/huangpf/azure-xplat-cli","description":"Microsoft Azure Cross Platform Command Line","fork":true,"url":"https://api.github.com/repos/huangpf/azure-xplat-cli","forks_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/forks","keys_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/teams","hooks_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/hooks","issue_events_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/issues/events{/number}","events_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/events","assignees_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/assignees{/user}","branches_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/branches{/branch}","tags_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/tags","blobs_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/languages","stargazers_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/stargazers","contributors_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/contributors","subscribers_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/subscribers","subscription_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/subscription","commits_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/contents/{+path}","compare_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/merges","archive_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/downloads","issues_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/issues{/number}","pulls_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/labels{/name}","releases_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/releases{/id}","deployments_url":"https://api.github.com/repos/huangpf/azure-xplat-cli/deployments","created_at":"2015-05-20T23:17:00Z","updated_at":"2016-01-12T17:47:32Z","pushed_at":"2016-03-18T18:00:07Z","git_url":"git://github.com/huangpf/azure-xplat-cli.git","ssh_url":"git@github.com:huangpf/azure-xplat-cli.git","clone_url":"https://github.com/huangpf/azure-xplat-cli.git","svn_url":"https://github.com/huangpf/azure-xplat-cli","homepage":"","size":75393,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"dev"}},"base":{"label":"Azure:dev","ref":"dev","sha":"4e71ab220ba2ae95f2fc3ba0c26aa83164147984","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":6506651,"name":"azure-xplat-cli","full_name":"Azure/azure-xplat-cli","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/azure-xplat-cli","description":"Microsoft Azure Cross Platform Command Line","fork":false,"url":"https://api.github.com/repos/Azure/azure-xplat-cli","forks_url":"https://api.github.com/repos/Azure/azure-xplat-cli/forks","keys_url":"https://api.github.com/repos/Azure/azure-xplat-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-xplat-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-xplat-cli/teams","hooks_url":"https://api.github.com/repos/Azure/azure-xplat-cli/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-xplat-cli/events","assignees_url":"https://api.github.com/repos/Azure/azure-xplat-cli/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-xplat-cli/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-xplat-cli/tags","blobs_url":"https://api.github.com/repos/Azure/azure-xplat-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-xplat-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-xplat-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-xplat-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-xplat-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-xplat-cli/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-xplat-cli/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-xplat-cli/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-xplat-cli/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-xplat-cli/subscription","commits_url":"https://api.github.com/repos/Azure/azure-xplat-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-xplat-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-xplat-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-xplat-cli/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-xplat-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-xplat-cli/merges","archive_url":"https://api.github.com/repos/Azure/azure-xplat-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-xplat-cli/downloads","issues_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-xplat-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-xplat-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-xplat-cli/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-xplat-cli/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-xplat-cli/deployments","created_at":"2012-11-02T13:43:50Z","updated_at":"2016-03-18T20:12:09Z","pushed_at":"2016-03-18T21:07:32Z","git_url":"git://github.com/Azure/azure-xplat-cli.git","ssh_url":"git@github.com:Azure/azure-xplat-cli.git","clone_url":"https://github.com/Azure/azure-xplat-cli.git","svn_url":"https://github.com/Azure/azure-xplat-cli","homepage":"","size":81724,"stargazers_count":392,"watchers_count":392,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":279,"mirror_url":null,"open_issues_count":260,"forks":279,"open_issues":260,"watchers":392,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/2651"},"html":{"href":"https://github.com/Azure/azure-xplat-cli/pull/2651"},"issue":{"href":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2651"},"comments":{"href":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2651/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/2651/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/2651/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-xplat-cli/statuses/3c53fcde10ca1c69e0ab11b86bf740d0b27bf161"}}}}