fix(cli): support force removing projects (#3922)

This commit is contained in:
Andrew Barnes authored and GitHub committed 2026-07-20 08:53:02 +00:00
1 parent df65a6c3ad
commit 5fcfe242c1
2 files changed
+70 -1

No files matched your search

+5
View File
@@ -493,6 +493,10 @@ const projectRemoveCommand = Command.make("remove", {
project: Argument.string("project").pipe(
Argument.withDescription("Project id or workspace root to remove."),
),
force: Flag.boolean("force").pipe(
Flag.withDescription("Delete the project and all of its threads."),
Flag.withDefault(false),
),
}).pipe(
Command.withDescription("Remove a project."),
Command.withHandler((flags) =>
@@ -515,6 +519,7 @@ const projectRemoveCommand = Command.make("remove", {
type: "project.delete",
commandId: CommandId.make(yield* projectCommandUuid),
projectId: project.id,
force: flags.force,
});
return `Removed project ${project.id} (${project.title}).`;
}),