From 1ecff5fdf798612e6e97ecb5d78c5b0193f37099 Mon Sep 17 00:00:00 2001 From: gooker_young Date: Sun, 21 Jun 2026 19:04:40 +0800 Subject: [PATCH] refactor(runner): simplify command help text generation --- src/pyflowx/runner.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/pyflowx/runner.py b/src/pyflowx/runner.py index 08fb9f6..039f350 100644 --- a/src/pyflowx/runner.py +++ b/src/pyflowx/runner.py @@ -183,10 +183,7 @@ class CliRunner: def _format_commands_help(self) -> str: """格式化命令帮助文本.""" - lines = ["可用命令:"] - for cmd in self.graphs: - lines.append(f" {cmd}") - return "\n".join(lines) + return "可用命令:\n" + " | ".join(self.graphs.keys()) # ------------------------------------------------------------------ # # 执行