diff options
| author | Allen Hutchison <[email protected]> | 2025-04-24 16:08:29 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-24 16:08:29 -0700 |
| commit | 8cf3e1611e649d47d53308b9d6acd650a59ee61d (patch) | |
| tree | 1f84ef1d41cb30533c523568f53c0213af73a0a7 /packages/cli/src | |
| parent | 133f39494e7417c40141b3cd1487d7505cd95977 (diff) | |
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 <[email protected]>
* lint fix.
---------
Co-authored-by: N. Taylor Mullen <[email protected]>
Diffstat (limited to 'packages/cli/src')
| -rw-r--r-- | packages/cli/src/config/config.ts | 11 |
1 files changed, 10 insertions, 1 deletions
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, ); } |
