remove target_dir flag (#149)
This commit is contained in:
parent
30bdef9bf5
commit
aed42a726a
|
@ -17,7 +17,6 @@ const DEFAULT_GEMINI_MODEL = 'gemini-2.5-flash-preview-04-17';
|
||||||
|
|
||||||
// Keep CLI-specific argument parsing
|
// Keep CLI-specific argument parsing
|
||||||
interface CliArgs {
|
interface CliArgs {
|
||||||
target_dir: string | undefined;
|
|
||||||
model: string | undefined;
|
model: string | undefined;
|
||||||
debug_mode: boolean | undefined;
|
debug_mode: boolean | undefined;
|
||||||
question: string | undefined;
|
question: string | undefined;
|
||||||
|
@ -25,12 +24,6 @@ interface CliArgs {
|
||||||
|
|
||||||
function parseArguments(): CliArgs {
|
function parseArguments(): CliArgs {
|
||||||
const argv = yargs(hideBin(process.argv))
|
const argv = yargs(hideBin(process.argv))
|
||||||
.option('target_dir', {
|
|
||||||
alias: 'd',
|
|
||||||
type: 'string',
|
|
||||||
description:
|
|
||||||
'The target directory for Gemini operations. Defaults to the current working directory.',
|
|
||||||
})
|
|
||||||
.option('model', {
|
.option('model', {
|
||||||
alias: 'm',
|
alias: 'm',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
@ -76,7 +69,7 @@ export function loadCliConfig(): Config {
|
||||||
return createServerConfig(
|
return createServerConfig(
|
||||||
process.env.GEMINI_API_KEY,
|
process.env.GEMINI_API_KEY,
|
||||||
argv.model || DEFAULT_GEMINI_MODEL,
|
argv.model || DEFAULT_GEMINI_MODEL,
|
||||||
argv.target_dir || process.cwd(),
|
process.cwd(),
|
||||||
argv.debug_mode || false,
|
argv.debug_mode || false,
|
||||||
argv.question || '',
|
argv.question || '',
|
||||||
// TODO: load passthroughCommands from .env file
|
// TODO: load passthroughCommands from .env file
|
||||||
|
|
Loading…
Reference in New Issue