2025-07-07 16:45:44 -04:00
|
|
|
/**
|
|
|
|
|
* @license
|
|
|
|
|
* Copyright 2025 Google LLC
|
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
*/
|
|
|
|
|
|
2025-07-20 16:57:34 -04:00
|
|
|
import { CommandKind, OpenDialogActionReturn, SlashCommand } from './types.js';
|
2025-07-07 16:45:44 -04:00
|
|
|
|
|
|
|
|
export const helpCommand: SlashCommand = {
|
|
|
|
|
name: 'help',
|
2025-07-20 16:57:34 -04:00
|
|
|
altNames: ['?'],
|
2025-07-07 16:45:44 -04:00
|
|
|
description: 'for help on gemini-cli',
|
2025-07-20 16:57:34 -04:00
|
|
|
kind: CommandKind.BUILT_IN,
|
2025-07-07 16:45:44 -04:00
|
|
|
action: (_context, _args): OpenDialogActionReturn => {
|
|
|
|
|
console.debug('Opening help UI ...');
|
|
|
|
|
return {
|
|
|
|
|
type: 'dialog',
|
|
|
|
|
dialog: 'help',
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
};
|