Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/cli/src/ui/commands/extensionsCommand.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,13 @@ describe('extensionsCommand', () => {
expect(mockUninstallExtension).not.toHaveBeenCalled();
});

it('should expose "delete" as an alias', () => {
const uninstallCmd = extensionsCommand(true).subCommands?.find(
(cmd) => cmd.name === 'uninstall',
);
expect(uninstallCmd?.altNames).toContain('delete');
});

it('should call uninstallExtension and show success message', async () => {
const extensionName = 'test-extension';
await uninstallAction!(mockContext, extensionName);
Expand Down
1 change: 1 addition & 0 deletions packages/cli/src/ui/commands/extensionsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,7 @@ const linkCommand: SlashCommand = {

const uninstallCommand: SlashCommand = {
name: 'uninstall',
altNames: ['delete'],
description: 'Uninstall an extension',
kind: CommandKind.BUILT_IN,
autoExecute: false,
Expand Down