feat(workflow): implement real-time workflow tail and watch commands

This commit is contained in:
gitea committed 2026-10-15 16:37:27 +08:00
1 parent 71f9879f68
commit 53201ba4e1
11 files changed
+1310 -7

No files matched your search

+6 -1
View File
@@ -12,6 +12,7 @@ import { handleCopy } from "./copy.js";
import { handleDelete } from "./delete.js";
import { handleCreate } from "./create.js";
import { handleNodeCommand } from "./node.js";
import { handleWorkflowTailCommand } from "./tail.js";
export async function handleWorkflowCommand(
parsed: CliParsedArgs,
@@ -93,10 +94,14 @@ export async function handleWorkflowCommand(
case "node":
case "nodes":
return handleNodeCommand(parsed, runtime);
case "tail":
case "watch":
case "follow":
return handleWorkflowTailCommand(parsed, runtime);
default:
return {
stdout: "",
stderr: `未知 workflow 子命令: ${action}。支持: list, get, find, analyze, toggle, publish, patch, save, history, logs, job, diff, diff-job, check, test, copy, create, delete, node\n`,
stderr: `未知 workflow 子命令: ${action}。支持: list, get, find, analyze, toggle, publish, patch, save, history, logs, job, diff, diff-job, check, test, copy, create, delete, node, tail\n`,
exitCode: 1,
};
}