[extensions] Add disable command (#7001)

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
christine betts
2025-08-26 14:36:55 +00:00
committed by GitHub
parent d77391b3cd
commit dff175c4f4
11 changed files with 291 additions and 29 deletions

View File

@@ -6,6 +6,7 @@
import type { CommandModule } from 'yargs';
import { updateExtension } from '../../config/extension.js';
import { getErrorMessage } from '../../utils/errors.js';
interface UpdateArgs {
name: string;
@@ -23,7 +24,7 @@ export async function handleUpdate(args: UpdateArgs) {
`Extension "${args.name}" successfully updated: ${updatedExtensionInfo.originalVersion}${updatedExtensionInfo.updatedVersion}.`,
);
} catch (error) {
console.error((error as Error).message);
console.error(getErrorMessage(error));
process.exit(1);
}
}