summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/commands/editorCommand.ts
blob: dbfafa51226df6fe70b59cbea977b797c0327afa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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',
  }),
};