From 383b9177848eeefb8c123a7a7ecc0ee391380eea Mon Sep 17 00:00:00 2001 From: Taylor Mullen Date: Fri, 18 Apr 2025 18:08:43 -0400 Subject: Run `npm run format` - This has the entirety of the changes. Part of https://b.corp.google.com/issues/411720532 --- packages/cli/src/config/config.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'packages/cli/src/config/config.ts') diff --git a/packages/cli/src/config/config.ts b/packages/cli/src/config/config.ts index f02fea98..28e755e8 100644 --- a/packages/cli/src/config/config.ts +++ b/packages/cli/src/config/config.ts @@ -35,7 +35,7 @@ export function loadConfig(): Config { loadEnvironment(); const argv = parseArguments(); return new Config( - process.env.GEMINI_API_KEY || "", + process.env.GEMINI_API_KEY || '', argv.model || process.env.GEMINI_API_KEY || DEFAULT_GEMINI_MODEL, argv.target_dir || process.cwd(), ); @@ -66,15 +66,13 @@ function parseArguments(): CliArgs { }) .help() .alias('h', 'help') - .strict() // Keep strict mode to error on unknown options - .argv; + .strict().argv; // Keep strict mode to error on unknown options // Cast to the interface to ensure the structure aligns with expectations // Use `unknown` first for safer casting if types might not perfectly match return argv as unknown as CliArgs; } - function findEnvFile(startDir: string): string | null { // Start search from the provided directory (e.g., current working directory) let currentDir = path.resolve(startDir); // Ensure absolute path -- cgit v1.2.3