{"action":"created","comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/pulls/comments/45473144","id":45473144,"diff_hunk":"@@ -84,38 +88,37 @@ public String info(\n \t\tQualifiedModuleName module = processArgs(name, type);\n \t\tDetailedModuleRegistrationResource info = moduleOperations().info(module.name, module.type);\n \t\tList<ConfigurationMetadataProperty> options = info.getOptions();\n-\t\tStringBuilder result = new StringBuilder();\n-\t\tresult.append(\"Information about \")\n-\t\t\t\t.append(module.type.name())\n-\t\t\t\t.append(\" module '\")\n-\t\t\t\t.append(module.name)\n-\t\t\t\t.append(\"':\\n\\n\");\n+\t\tList<Object> result = new ArrayList<Object>();\n+\t\tresult.add(String.format(\"Information about %s module '%s':\", module.type, module.name));\n \n-\t\tresult.append(\"Maven coordinates: \").append(info.getCoordinates()).append(\"\\n\\n\");\n+\t\tresult.add(String.format(\"Maven coordinates: %s\", info.getCoordinates()));\n \n \t\tif (info.getShortDescription() != null) {\n-\t\t\tresult.append(info.getShortDescription()).append(\"\\n\\n\");\n+\t\t\tresult.add(info.getShortDescription());\n \t\t}\n \t\tif (options == null) {\n-\t\t\tresult.append(\"Module options metadata is not available\");\n+\t\t\tresult.add(\"Module options metadata is not available\");\n \t\t}\n \t\telse {\n-\t\t\tTable table = new Table()\n-\t\t\t\t\t.addHeader(1, new TableHeader(\"Option Name\"))\n-\t\t\t\t\t.addHeader(2, new TableHeader(\"Description\"))\n-\t\t\t\t\t.addHeader(3, new TableHeader(\"Default\"))\n-\t\t\t\t\t.addHeader(4, new TableHeader(\"Type\"));\n-\t\t\tfor (ConfigurationMetadataProperty o : options) {\n-\t\t\t\tfinal TableRow row = new TableRow();\n-\t\t\t\trow.addValue(1, o.getId())\n-\t\t\t\t\t\t.addValue(2, o.getDescription() == null ? \"<unknown>\" : o.getDescription())\n-\t\t\t\t\t\t.addValue(3, prettyPrintDefaultValue(o))\n-\t\t\t\t\t\t.addValue(4, o.getType() == null ? \"<unknown>\" : o.getType());\n-\t\t\t\ttable.getRows().add(row);\n+\t\t\tTableModelBuilder<Object> modelBuidler = new TableModelBuilder<>();","path":"spring-cloud-dataflow-shell/src/main/java/org/springframework/cloud/dataflow/shell/command/ModuleCommands.java","position":78,"original_position":78,"commit_id":"a48c7fa09b70a2a661ae50f9ce5bd8aff534c6b9","original_commit_id":"a48c7fa09b70a2a661ae50f9ce5bd8aff534c6b9","user":{"login":"markfisher","id":140784,"avatar_url":"https://avatars.githubusercontent.com/u/140784?v=3","gravatar_id":"","url":"https://api.github.com/users/markfisher","html_url":"https://github.com/markfisher","followers_url":"https://api.github.com/users/markfisher/followers","following_url":"https://api.github.com/users/markfisher/following{/other_user}","gists_url":"https://api.github.com/users/markfisher/gists{/gist_id}","starred_url":"https://api.github.com/users/markfisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markfisher/subscriptions","organizations_url":"https://api.github.com/users/markfisher/orgs","repos_url":"https://api.github.com/users/markfisher/repos","events_url":"https://api.github.com/users/markfisher/events{/privacy}","received_events_url":"https://api.github.com/users/markfisher/received_events","type":"User","site_admin":false},"body":"typo: \"Buidler\"","created_at":"2015-11-20T14:25:51Z","updated_at":"2015-11-20T14:25:51Z","html_url":"https://github.com/spring-cloud/spring-cloud-dataflow/pull/175#discussion_r45473144","pull_request_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/pulls/175","_links":{"self":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/pulls/comments/45473144"},"html":{"href":"https://github.com/spring-cloud/spring-cloud-dataflow/pull/175#discussion_r45473144"},"pull_request":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/pulls/175"}}},"pull_request":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/pulls/175","id":51339047,"html_url":"https://github.com/spring-cloud/spring-cloud-dataflow/pull/175","diff_url":"https://github.com/spring-cloud/spring-cloud-dataflow/pull/175.diff","patch_url":"https://github.com/spring-cloud/spring-cloud-dataflow/pull/175.patch","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/issues/175","number":175,"state":"open","locked":false,"title":"Apply new Spring Shell tables consistently","user":{"login":"ericbottard","id":313494,"avatar_url":"https://avatars.githubusercontent.com/u/313494?v=3","gravatar_id":"","url":"https://api.github.com/users/ericbottard","html_url":"https://github.com/ericbottard","followers_url":"https://api.github.com/users/ericbottard/followers","following_url":"https://api.github.com/users/ericbottard/following{/other_user}","gists_url":"https://api.github.com/users/ericbottard/gists{/gist_id}","starred_url":"https://api.github.com/users/ericbottard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericbottard/subscriptions","organizations_url":"https://api.github.com/users/ericbottard/orgs","repos_url":"https://api.github.com/users/ericbottard/repos","events_url":"https://api.github.com/users/ericbottard/events{/privacy}","received_events_url":"https://api.github.com/users/ericbottard/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-11-20T10:18:34Z","updated_at":"2015-11-20T14:25:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3f8ce5b37a988a9c2f8a54c189ac12c5fc6887ab","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/pulls/175/commits","review_comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/pulls/175/comments","review_comment_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/issues/175/comments","statuses_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/statuses/a48c7fa09b70a2a661ae50f9ce5bd8aff534c6b9","head":{"label":"ericbottard:UseNewTables","ref":"UseNewTables","sha":"a48c7fa09b70a2a661ae50f9ce5bd8aff534c6b9","user":{"login":"ericbottard","id":313494,"avatar_url":"https://avatars.githubusercontent.com/u/313494?v=3","gravatar_id":"","url":"https://api.github.com/users/ericbottard","html_url":"https://github.com/ericbottard","followers_url":"https://api.github.com/users/ericbottard/followers","following_url":"https://api.github.com/users/ericbottard/following{/other_user}","gists_url":"https://api.github.com/users/ericbottard/gists{/gist_id}","starred_url":"https://api.github.com/users/ericbottard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericbottard/subscriptions","organizations_url":"https://api.github.com/users/ericbottard/orgs","repos_url":"https://api.github.com/users/ericbottard/repos","events_url":"https://api.github.com/users/ericbottard/events{/privacy}","received_events_url":"https://api.github.com/users/ericbottard/received_events","type":"User","site_admin":false},"repo":{"id":40243328,"name":"spring-cloud-dataflow","full_name":"ericbottard/spring-cloud-dataflow","owner":{"login":"ericbottard","id":313494,"avatar_url":"https://avatars.githubusercontent.com/u/313494?v=3","gravatar_id":"","url":"https://api.github.com/users/ericbottard","html_url":"https://github.com/ericbottard","followers_url":"https://api.github.com/users/ericbottard/followers","following_url":"https://api.github.com/users/ericbottard/following{/other_user}","gists_url":"https://api.github.com/users/ericbottard/gists{/gist_id}","starred_url":"https://api.github.com/users/ericbottard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericbottard/subscriptions","organizations_url":"https://api.github.com/users/ericbottard/orgs","repos_url":"https://api.github.com/users/ericbottard/repos","events_url":"https://api.github.com/users/ericbottard/events{/privacy}","received_events_url":"https://api.github.com/users/ericbottard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ericbottard/spring-cloud-dataflow","description":"","fork":true,"url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow","forks_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/forks","keys_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/teams","hooks_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/hooks","issue_events_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/issues/events{/number}","events_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/events","assignees_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/assignees{/user}","branches_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/branches{/branch}","tags_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/tags","blobs_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/statuses/{sha}","languages_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/languages","stargazers_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/stargazers","contributors_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/contributors","subscribers_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/subscribers","subscription_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/subscription","commits_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/contents/{+path}","compare_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/merges","archive_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/downloads","issues_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/issues{/number}","pulls_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/pulls{/number}","milestones_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/milestones{/number}","notifications_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/labels{/name}","releases_url":"https://api.github.com/repos/ericbottard/spring-cloud-dataflow/releases{/id}","created_at":"2015-08-05T12:13:08Z","updated_at":"2015-09-07T07:14:40Z","pushed_at":"2015-11-20T10:55:52Z","git_url":"git://github.com/ericbottard/spring-cloud-dataflow.git","ssh_url":"git@github.com:ericbottard/spring-cloud-dataflow.git","clone_url":"https://github.com/ericbottard/spring-cloud-dataflow.git","svn_url":"https://github.com/ericbottard/spring-cloud-dataflow","homepage":null,"size":1134,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"spring-cloud:master","ref":"master","sha":"a170ed02213f0ac6d8d45948e9fcf0bf8190af37","user":{"login":"spring-cloud","id":7815877,"avatar_url":"https://avatars.githubusercontent.com/u/7815877?v=3","gravatar_id":"","url":"https://api.github.com/users/spring-cloud","html_url":"https://github.com/spring-cloud","followers_url":"https://api.github.com/users/spring-cloud/followers","following_url":"https://api.github.com/users/spring-cloud/following{/other_user}","gists_url":"https://api.github.com/users/spring-cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-cloud/subscriptions","organizations_url":"https://api.github.com/users/spring-cloud/orgs","repos_url":"https://api.github.com/users/spring-cloud/repos","events_url":"https://api.github.com/users/spring-cloud/events{/privacy}","received_events_url":"https://api.github.com/users/spring-cloud/received_events","type":"Organization","site_admin":false},"repo":{"id":39469487,"name":"spring-cloud-dataflow","full_name":"spring-cloud/spring-cloud-dataflow","owner":{"login":"spring-cloud","id":7815877,"avatar_url":"https://avatars.githubusercontent.com/u/7815877?v=3","gravatar_id":"","url":"https://api.github.com/users/spring-cloud","html_url":"https://github.com/spring-cloud","followers_url":"https://api.github.com/users/spring-cloud/followers","following_url":"https://api.github.com/users/spring-cloud/following{/other_user}","gists_url":"https://api.github.com/users/spring-cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-cloud/subscriptions","organizations_url":"https://api.github.com/users/spring-cloud/orgs","repos_url":"https://api.github.com/users/spring-cloud/repos","events_url":"https://api.github.com/users/spring-cloud/events{/privacy}","received_events_url":"https://api.github.com/users/spring-cloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spring-cloud/spring-cloud-dataflow","description":"","fork":false,"url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow","forks_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/forks","keys_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/teams","hooks_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/hooks","issue_events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/issues/events{/number}","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/events","assignees_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/assignees{/user}","branches_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/branches{/branch}","tags_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/tags","blobs_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/statuses/{sha}","languages_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/languages","stargazers_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/stargazers","contributors_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/contributors","subscribers_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/subscribers","subscription_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/subscription","commits_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/contents/{+path}","compare_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/merges","archive_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/downloads","issues_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/issues{/number}","pulls_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/pulls{/number}","milestones_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/milestones{/number}","notifications_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/labels{/name}","releases_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/releases{/id}","created_at":"2015-07-21T20:56:11Z","updated_at":"2015-11-19T19:11:19Z","pushed_at":"2015-11-20T13:54:09Z","git_url":"git://github.com/spring-cloud/spring-cloud-dataflow.git","ssh_url":"git@github.com:spring-cloud/spring-cloud-dataflow.git","clone_url":"https://github.com/spring-cloud/spring-cloud-dataflow.git","svn_url":"https://github.com/spring-cloud/spring-cloud-dataflow","homepage":null,"size":2040,"stargazers_count":26,"watchers_count":26,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":30,"mirror_url":null,"open_issues_count":33,"forks":30,"open_issues":33,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/pulls/175"},"html":{"href":"https://github.com/spring-cloud/spring-cloud-dataflow/pull/175"},"issue":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/issues/175"},"comments":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/issues/175/comments"},"review_comments":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/pulls/175/comments"},"review_comment":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/pulls/175/commits"},"statuses":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow/statuses/a48c7fa09b70a2a661ae50f9ce5bd8aff534c6b9"}}}}