fix: handle bare /gsd cleanup command
Previously, running `/gsd cleanup` without a subcommand (branches or snapshots) fell through to the unknown command handler, producing a warning. Now bare `/gsd cleanup` runs both branch and snapshot cleanup.
This commit is contained in:
parent
2b0c0064cd
commit
d19e213010
1 changed files with 6 additions and 0 deletions
|
|
@ -281,6 +281,12 @@ export function registerGSDCommand(pi: ExtensionAPI): void {
|
|||
return;
|
||||
}
|
||||
|
||||
if (trimmed === "cleanup") {
|
||||
await handleCleanupBranches(ctx, projectRoot());
|
||||
await handleCleanupSnapshots(ctx, projectRoot());
|
||||
return;
|
||||
}
|
||||
|
||||
if (trimmed === "cleanup branches") {
|
||||
await handleCleanupBranches(ctx, projectRoot());
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue