From 256f36c11af19153d0c2fd4622098c5d8a650176 Mon Sep 17 00:00:00 2001 From: dingjiahuichina Date: Sat, 7 Jun 2025 16:44:30 +0800 Subject: [PATCH] =?UTF-8?q?opt:=20=E4=BC=98=E5=8C=96oedp=20list=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E6=95=88=E6=9E=9C=EF=BC=8Cdescription=E9=99=90?= =?UTF-8?q?=E5=AE=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oedp/src/commands/list/list_cmd.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/oedp/src/commands/list/list_cmd.py b/oedp/src/commands/list/list_cmd.py index da3be91..cffa3ed 100644 --- a/oedp/src/commands/list/list_cmd.py +++ b/oedp/src/commands/list/list_cmd.py @@ -62,9 +62,13 @@ class ListCmd: def _create_table(self): """创建并配置输出表格""" table = PrettyTable() - table.field_names = ["repo", "name", "version", "type", "size", "description"] + table.field_names = ["repo", "name", "version", "updated", "type", "size", "description"] table.align["name"] = "l" + table.align["version"] = "l" + table.align["updated"] = "l" + table.align["size"] = "r" table.align["description"] = "l" + table._max_width = {"description": 64} return table def _process_yaml_file(self, filepath, repo_name, table): @@ -85,6 +89,7 @@ class ListCmd: repo_name, version_info.get('name', plugin_name), version_info.get('version', ''), + version_info.get('updated', ''), version_info.get('type', ''), version_info.get('size', ''), version_info.get('description', '') -- Gitee