feat(workspaces): apply consistency fixes to wsr commands and slash commands

This commit is contained in:
mkorwel
2026-03-19 08:37:25 -07:00
parent 4de0f916d7
commit 2ddebe68e5
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -16,6 +16,9 @@ export const remoteWorkspaceCommand: CommandModule = {
describe: 'Manage remote workspaces',
builder: (yargs: Argv) =>
yargs
.middleware((argv) => {
argv['isCommand'] = true;
})
.command(defer(listCommand, 'wsr'))
.command(defer(createCommand, 'wsr'))
.command(defer(deleteCommand, 'wsr'))
@@ -10,7 +10,6 @@ import type { MessageActionReturn } from '@google/gemini-cli-core';
import { WorkspaceHubClient } from '@google/gemini-cli-core';
const listAction = async (
_context: CommandContext,
): Promise<void | MessageActionReturn> => {
const hubUrl =
@@ -153,6 +152,7 @@ const deleteCommand: SlashCommand = {
export const workspaceSlashCommand: SlashCommand = {
name: 'workspace',
altNames: ['wsr'],
description: 'Manage remote workspaces',
kind: CommandKind.BUILT_IN,
autoExecute: false,