From 8cf3e1611e649d47d53308b9d6acd650a59ee61d Mon Sep 17 00:00:00 2001 From: Allen Hutchison Date: Thu, 24 Apr 2025 16:08:29 -0700 Subject: Adding a full_context command line argument. (#158) * Adding a full_context command line argument. * Update packages/cli/src/config/config.ts Co-authored-by: N. Taylor Mullen * lint fix. --------- Co-authored-by: N. Taylor Mullen --- packages/cli/src/config/config.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'packages/cli/src') diff --git a/packages/cli/src/config/config.ts b/packages/cli/src/config/config.ts index 40a5dfd1..0db07d2b 100644 --- a/packages/cli/src/config/config.ts +++ b/packages/cli/src/config/config.ts @@ -20,6 +20,7 @@ interface CliArgs { model: string | undefined; debug_mode: boolean | undefined; question: string | undefined; + full_context: boolean | undefined; } function parseArguments(): CliArgs { @@ -42,6 +43,13 @@ function parseArguments(): CliArgs { description: 'The question to pass to the command when using piped input.', }) + .option('full_context', { + alias: 'f', + type: 'boolean', + description: + 'Recursively include all files within the current directory as context.', + default: false, + }) .help() .alias('h', 'help') .strict().argv; @@ -72,6 +80,7 @@ export function loadCliConfig(): Config { process.cwd(), argv.debug_mode || false, argv.question || '', - // TODO: load passthroughCommands from .env file + undefined, // TODO: load passthroughCommands from .env file + argv.full_context || false, ); } -- cgit v1.2.3