mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-13 15:40:57 -07:00
26 lines
607 B
TypeScript
26 lines
607 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import type { SlashCommand } from './types.js';
|
|
import { CommandKind } from './types.js';
|
|
import { MessageType, type HistoryItemHelp } from '../types.js';
|
|
|
|
export const helpCommand: SlashCommand = {
|
|
name: 'help',
|
|
altNames: ['?'],
|
|
kind: CommandKind.BUILT_IN,
|
|
description: 'For help on gemini-cli',
|
|
autoExecute: true,
|
|
action: async (context) => {
|
|
const helpItem: Omit<HistoryItemHelp, 'id'> = {
|
|
type: MessageType.HELP,
|
|
timestamp: new Date(),
|
|
};
|
|
|
|
context.ui.addItem(helpItem);
|
|
},
|
|
};
|