提交 810cdd3a 编写于 作者: W wuzewu

update search result table width

上级 0b792a5e
...@@ -46,7 +46,7 @@ class SearchCommand(BaseCommand): ...@@ -46,7 +46,7 @@ class SearchCommand(BaseCommand):
resource_list = default_hub_server.search_resource(resource_name) resource_list = default_hub_server.search_resource(resource_name)
tp = TablePrinter( tp = TablePrinter(
titles=["ResourceName", "Type", "Version", "Summary"], titles=["ResourceName", "Type", "Version", "Summary"],
placeholders=[25, 10, 10, 35]) placeholders=[30, 8, 8, 25])
for resource_name, resource_type, resource_version, resource_summary in resource_list: for resource_name, resource_type, resource_version, resource_summary in resource_list:
if resource_type == "Module": if resource_type == "Module":
colors = ["yellow", None, None, None] colors = ["yellow", None, None, None]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册