diff --git a/cli/deps.ts b/cli/deps.ts index 2d7345dfdb..b3e0b0d89c 100644 --- a/cli/deps.ts +++ b/cli/deps.ts @@ -1,6 +1,6 @@ // windmill -export { setClient } from "https://deno.land/x/windmill@v1.65.0/mod.ts"; -export * from "https://deno.land/x/windmill@v1.65.0/windmill-api/index.ts"; +export { setClient } from "https://deno.land/x/windmill@v1.66.0/mod.ts"; +export * from "https://deno.land/x/windmill@v1.66.0/windmill-api/index.ts"; // cliffy export { Command } from "https://deno.land/x/cliffy@v0.25.7/command/command.ts"; diff --git a/cli/sync.ts b/cli/sync.ts index 0e18aab43a..493c9f6213 100644 --- a/cli/sync.ts +++ b/cli/sync.ts @@ -313,7 +313,7 @@ async function pull( } } } - console.log(colors.green.underline(`Done! All ${changes.length} changes pushed to the remote.`)); + console.log(colors.green.underline(`Done! All ${changes.length} changes applied locally.`)); } @@ -484,7 +484,7 @@ async function push(opts: GlobalOptions & { raw: boolean, yes: boolean, skipPull await ResourceService.deleteResourceType({ workspace: workspaceId, path: removeSuffix(change.path, ".resource-type.json") }) break case "flow": - await FlowService.archiveFlowByPath({ workspace: workspaceId, path: removeSuffix(change.path, ".flow.json") }) + await FlowService.deleteFlowByPath({ workspace: workspaceId, path: removeSuffix(change.path, ".flow.json") }) break case "app": await AppService.deleteApp({ workspace: workspaceId, path: removeSuffix(change.path, ".app.json") }) @@ -495,9 +495,12 @@ async function push(opts: GlobalOptions & { raw: boolean, yes: boolean, skipPull default: break; } + try { + Deno.remove(stateTarget) + } catch { } } } - console.log(colors.green.underline(`Done! All ${changes.length} changes applied locally.`)); + console.log(colors.green.underline(`Done! All ${changes.length} changes pushed to the remote workspace.`)); }