diff options
| author | Allen Hutchison <[email protected]> | 2025-04-22 18:32:03 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-22 18:32:03 -0700 |
| commit | 9bc9c6e6c5b389fc72f9fcdb4452a50c37dc903e (patch) | |
| tree | 02bf39a79ff9b8d11ef10f435f09a8539842e024 /packages/cli/src/config/config.ts | |
| parent | ef7dcdb49ebc79f9d3cda5708a3ca4488a1899dc (diff) | |
Question flag (#125)
Diffstat (limited to 'packages/cli/src/config/config.ts')
| -rw-r--r-- | packages/cli/src/config/config.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/cli/src/config/config.ts b/packages/cli/src/config/config.ts index 42275834..09513bae 100644 --- a/packages/cli/src/config/config.ts +++ b/packages/cli/src/config/config.ts @@ -20,6 +20,7 @@ interface CliArgs { target_dir: string | undefined; model: string | undefined; debug_mode: boolean | undefined; + question: string | undefined; } function parseArguments(): CliArgs { @@ -42,6 +43,12 @@ function parseArguments(): CliArgs { description: 'Whether to run in debug mode. Defaults to false.', default: false, }) + .option('question', { + alias: 'q', + type: 'string', + description: + 'The question to pass to the command when using piped input.', + }) .help() .alias('h', 'help') .strict().argv; @@ -71,6 +78,7 @@ export function loadCliConfig(): Config { argv.model || DEFAULT_GEMINI_MODEL, argv.target_dir || process.cwd(), argv.debug_mode || false, + argv.question || '', // TODO: load passthroughCommands from .env file ); } |
