update /editor to new slash command arch (#4153)

Co-authored-by: Abhi <abhipatel@google.com>
This commit is contained in:
Harold Mciver
2025-07-16 20:27:36 -04:00
committed by GitHub
parent ab9eb9377f
commit fbe09cd35e
7 changed files with 63 additions and 24 deletions

View File

@@ -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',
}),
};