Skip to content

Question flag - #125

Merged
allenhutchison merged 4 commits into
mainfrom
question-flag
Apr 23, 2025
Merged

Question flag#125
allenhutchison merged 4 commits into
mainfrom
question-flag

Conversation

@allenhutchison

Copy link
Copy Markdown
Contributor

Adding a question flag that will allow you to pose a question to the model and get a response on STDOUT.

gemini-code --question "Tell me what this repo does."

Can also be used with piped input:

files-to-code src/gemini-code | gemini-code --question "Where is the best place to set command line args?"

…he model and render

it's output on STDOUT. This works in conjunction with piped input so you can do things like:

cat long-code-file.ts | gemini-cli -q "explain this file to me:"
Comment thread packages/cli/src/gemini.ts Outdated
@allenhutchison
allenhutchison merged commit 9bc9c6e into main Apr 23, 2025
@allenhutchison
allenhutchison deleted the question-flag branch April 23, 2025 01:32
keithballinger pushed a commit that referenced this pull request Jun 13, 2025
yaleh pushed a commit to yaleh/gemini-cli that referenced this pull request Jun 29, 2025
viridivn pushed a commit to viridivn/gemini-cli that referenced this pull request Jun 29, 2025
skeshive pushed a commit that referenced this pull request Feb 19, 2026
…ing (#125)

* feat(core,ui): support Gemini 3.1 Pro Preview and active model filtering

* fix(core,ui): use optional chaining for config methods to support mocks

* fix(core): clear stale authType in refreshAuth to avoid incorrect model resolution

* do not show gemini 3.1 model when users do not have access to gemini 3.1 in stats
skeshive pushed a commit that referenced this pull request Feb 19, 2026
…ing (#125)

* feat(core,ui): support Gemini 3.1 Pro Preview and active model filtering

* fix(core,ui): use optional chaining for config methods to support mocks

* fix(core): clear stale authType in refreshAuth to avoid incorrect model resolution

* do not show gemini 3.1 model when users do not have access to gemini 3.1 in stats
sehoon38 added a commit that referenced this pull request Feb 20, 2026
…ing (#125)

* feat(core,ui): support Gemini 3.1 Pro Preview and active model filtering

* fix(core,ui): use optional chaining for config methods to support mocks

* fix(core): clear stale authType in refreshAuth to avoid incorrect model resolution

* do not show gemini 3.1 model when users do not have access to gemini 3.1 in stats
kuishou68 pushed a commit to iOfficeAI/gemini-cli-pro that referenced this pull request Feb 27, 2026
…ing (google-gemini#125)

* feat(core,ui): support Gemini 3.1 Pro Preview and active model filtering

* fix(core,ui): use optional chaining for config methods to support mocks

* fix(core): clear stale authType in refreshAuth to avoid incorrect model resolution

* do not show gemini 3.1 model when users do not have access to gemini 3.1 in stats
kuishou68 pushed a commit to iOfficeAI/gemini-cli-pro that referenced this pull request Feb 27, 2026
…ing (google-gemini#125)

* feat(core,ui): support Gemini 3.1 Pro Preview and active model filtering

* fix(core,ui): use optional chaining for config methods to support mocks

* fix(core): clear stale authType in refreshAuth to avoid incorrect model resolution

* do not show gemini 3.1 model when users do not have access to gemini 3.1 in stats
@sripasg sripasg added the size/s A small PR label Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s A small PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants