mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-16 06:43:07 -07:00
feat(workspaces): apply consistency fixes to wsr commands and slash commands
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user