Files
gemini-cli/packages/cli/src/commands/extensions.tsx
T

37 lines
1.2 KiB
TypeScript
Raw Normal View History

/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import type { CommandModule } from 'yargs';
import { installCommand } from './extensions/install.js';
import { uninstallCommand } from './extensions/uninstall.js';
import { listCommand } from './extensions/list.js';
import { updateCommand } from './extensions/update.js';
2025-08-26 14:36:55 +00:00
import { disableCommand } from './extensions/disable.js';
2025-08-26 15:49:00 +00:00
import { enableCommand } from './extensions/enable.js';
2025-09-02 10:15:42 -07:00
import { linkCommand } from './extensions/link.js';
import { newCommand } from './extensions/new.js';
export const extensionsCommand: CommandModule = {
command: 'extensions <command>',
describe: 'Manage Gemini CLI extensions.',
builder: (yargs) =>
yargs
.command(installCommand)
.command(uninstallCommand)
.command(listCommand)
.command(updateCommand)
2025-08-26 14:36:55 +00:00
.command(disableCommand)
2025-08-26 15:49:00 +00:00
.command(enableCommand)
2025-09-02 10:15:42 -07:00
.command(linkCommand)
.command(newCommand)
.demandCommand(1, 'You need at least one command before continuing.')
.version(false),
handler: () => {
// This handler is not called when a subcommand is provided.
// Yargs will show the help menu.
},
};