From fbe09cd35e6c043ea2dc69281b758e5ad9f3896c Mon Sep 17 00:00:00 2001 From: Harold Mciver Date: Wed, 16 Jul 2025 20:27:36 -0400 Subject: update `/editor` to new slash command arch (#4153) Co-authored-by: Abhi --- packages/cli/src/ui/commands/editorCommand.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 packages/cli/src/ui/commands/editorCommand.ts (limited to 'packages/cli/src/ui/commands/editorCommand.ts') diff --git a/packages/cli/src/ui/commands/editorCommand.ts b/packages/cli/src/ui/commands/editorCommand.ts new file mode 100644 index 00000000..dbfafa51 --- /dev/null +++ b/packages/cli/src/ui/commands/editorCommand.ts @@ -0,0 +1,16 @@ +/** + * @license + * Copyright 2025 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ + +import { type OpenDialogActionReturn, type SlashCommand } from './types.js'; + +export const editorCommand: SlashCommand = { + name: 'editor', + description: 'set external editor preference', + action: (): OpenDialogActionReturn => ({ + type: 'dialog', + dialog: 'editor', + }), +}; -- cgit v1.2.3