diff options
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, ); } |
