merge duplicate imports packages/cli/src subtask1 (#22040)

This commit is contained in:
nityam
2026-03-11 23:20:42 +05:30
committed by GitHub
parent 6900fe5527
commit 016d5d8eb6
45 changed files with 144 additions and 104 deletions
@@ -17,8 +17,10 @@ import {
import { handleInstall, installCommand } from './install.js';
import yargs from 'yargs';
import * as core from '@google/gemini-cli-core';
import type { inferInstallMetadata } from '../../config/extension-manager.js';
import { ExtensionManager } from '../../config/extension-manager.js';
import {
ExtensionManager,
type inferInstallMetadata,
} from '../../config/extension-manager.js';
import type {
promptForConsentNonInteractive,
requestConsentNonInteractive,
+1 -2
View File
@@ -6,8 +6,7 @@
import { describe, it, expect, vi } from 'vitest';
import { mcpCommand } from './mcp.js';
import { type Argv } from 'yargs';
import yargs from 'yargs';
import yargs, { type Argv } from 'yargs';
describe('mcp command', () => {
it('should have correct command definition', () => {
@@ -5,11 +5,10 @@
*/
import { vi, describe, it, expect, beforeEach, afterEach } from 'vitest';
import { coreEvents } from '@google/gemini-cli-core';
import { coreEvents, type Config } from '@google/gemini-cli-core';
import { handleList, listCommand } from './list.js';
import { loadSettings, type LoadedSettings } from '../../config/settings.js';
import { loadCliConfig } from '../../config/config.js';
import type { Config } from '@google/gemini-cli-core';
import chalk from 'chalk';
vi.mock('@google/gemini-cli-core', async (importOriginal) => {