From 1cbc93a6c87bfcc16b2e85c2a4e19922581a13aa Mon Sep 17 00:00:00 2001 From: wendrul <53628737+wendrul@users.noreply.github.com> Date: Thu, 11 Sep 2025 14:23:43 +0200 Subject: [PATCH] fix delete-fork cli command (#6583) --- cli/src/commands/workspace/fork.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cli/src/commands/workspace/fork.ts b/cli/src/commands/workspace/fork.ts index 222f47c9a8..04759a09d3 100644 --- a/cli/src/commands/workspace/fork.ts +++ b/cli/src/commands/workspace/fork.ts @@ -145,20 +145,16 @@ async function deleteWorkspaceFork( opts: GlobalOptions & { yes?: boolean; }, - silent: boolean, name: string, ) { - const orgWorkspaces = await allWorkspaces(opts.configDir); const idxOf = orgWorkspaces.findIndex((x) => x.name === name) ; if (idxOf === -1) { - if (!silent) { log.info( colors.red.bold(`! Workspace profile ${name} does not exist locally`) ); log.info("available workspace profiles:"); await list(opts); - } return; } @@ -198,7 +194,7 @@ async function deleteWorkspaceFork( log.info( colors.green(`✅ Forked workspace '${workspace.workspaceId}' deleted successfully!\n${result}`), ); - await removeWorkspace(name, silent, opts); + await removeWorkspace(name, false, opts); } export { createWorkspaceFork, deleteWorkspaceFork };