feat(workflow): implement declarative node editing commands
This commit is contained in:
1 parent
61123ad550
commit
3261b6ebdb
9 files changed
+1415
-6
No files matched your search
@@ -11,6 +11,7 @@ import { handleWorkflowTest } from "./test.js";
|
||||
import { handleCopy } from "./copy.js";
|
||||
import { handleDelete } from "./delete.js";
|
||||
import { handleCreate } from "./create.js";
|
||||
import { handleNodeCommand } from "./node.js";
|
||||
|
||||
export async function handleWorkflowCommand(
|
||||
parsed: CliParsedArgs,
|
||||
@@ -89,10 +90,13 @@ export async function handleWorkflowCommand(
|
||||
case "new":
|
||||
case "add":
|
||||
return handleCreate(parsed, runtime);
|
||||
case "node":
|
||||
case "nodes":
|
||||
return handleNodeCommand(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\n`,
|
||||
stderr: `未知 workflow 子命令: ${action}。支持: list, get, find, analyze, toggle, publish, patch, save, history, logs, job, diff, diff-job, check, test, copy, create, delete, node\n`,
|
||||
exitCode: 1,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user