mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
Run npm run format
- This has the entirety of the changes. Part of https://b.corp.google.com/issues/411720532
This commit is contained in:
committed by
N. Taylor Mullen
parent
fa264e4286
commit
383b917784
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user