fix(setup): default workspace to ./workflows when left empty

Enter = use default ./workflows. Type 'skip' to skip.
This commit is contained in:
2026-05-12 22:32:01 +08:00
parent c604d1f600
commit 931eb81458
@@ -278,14 +278,12 @@ async function collectInteractiveSetup(): Promise<Result<SetupCliArgs, string>>
const wsPath = await promptLine(
rl2,
"\nWorkflow workspace path (default: ./workflows, leave empty to skip): ",
"\nWorkflow workspace path (default: ./workflows, type 'skip' to skip): ",
);
rl2.close();
let initWorkspaceName: string | null = null;
if (wsPath !== "") {
initWorkspaceName = wsPath;
}
const initWorkspaceName =
wsPath.toLowerCase() === "skip" ? null : wsPath === "" ? "./workflows" : wsPath;
return ok({
provider,