Download projects/gemini-cli/packages/cli/src/ui/commands/helpCommand.ts from LevelUp2x/adaptai: direct link, hf CLI and curl.
- Browser
- Download file 598 Bytes
-
https://huggingface.co/datasets/LevelUp2x/adaptai/resolve/2147bc06c2ccf123b96f98eace2e6bf6486e7f0e/projects/gemini-cli/packages/cli/src/ui/commands/helpCommand.ts
- Command line
-
hf download hf://datasets/LevelUp2x/adaptai@2147bc06c2ccf123b96f98eace2e6bf6486e7f0e/projects/gemini-cli/packages/cli/src/ui/commands/helpCommand.ts
-
curl -L -o helpCommand.ts https://huggingface.co/datasets/LevelUp2x/adaptai/resolve/2147bc06c2ccf123b96f98eace2e6bf6486e7f0e/projects/gemini-cli/packages/cli/src/ui/commands/helpCommand.ts
598 Bytes
| /** | |
| * @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', | |
| action: async (context) => { | |
| const helpItem: Omit<HistoryItemHelp, 'id'> = { | |
| type: MessageType.HELP, | |
| timestamp: new Date(), | |
| }; | |
| context.ui.addItem(helpItem, Date.now()); | |
| }, | |
| }; | |