You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: use positional argument instead of deprecated --prompt flag
The Gemini CLI has deprecated the --prompt (-p) flag and recommends
using positional arguments instead. This change updates the CLI
invocation to pass the prompt as a positional argument, eliminating
the deprecation warning:
"The --prompt (-p) flag has been deprecated and will be removed
in a future version. Please use a positional argument for your
prompt."
Changes:
- Update gemini CLI invocations to use positional argument
- Update input description to reflect positional argument usage
- Regenerate README.md documentation
Fixes#453
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -175,7 +175,7 @@ go to the [Gemini Assistant workflow documentation](./examples/workflows/gemini-
175
175
176
176
- <aname="__input_google_api_key"></a><ahref="#user-content-__input_google_api_key"><code>google_api_key</code></a>: _(Optional)_ The Vertex AI API key to use with Gemini.
177
177
178
-
- <aname="__input_prompt"></a><ahref="#user-content-__input_prompt"><code>prompt</code></a>: _(Optional, default: `You are a helpful assistant.`)_ A string passed to the Gemini CLI's [`--prompt` argument](https://github.com/google-gemini/gemini-cli/blob/main/docs/get-started/configuration.md#command-line-arguments).
178
+
- <aname="__input_prompt"></a><ahref="#user-content-__input_prompt"><code>prompt</code></a>: _(Optional, default: `You are a helpful assistant.`)_ A string passed to the Gemini CLI as a [positional argument](https://github.com/google-gemini/gemini-cli/blob/main/docs/get-started/configuration.md#command-line-arguments).
179
179
180
180
- <aname="__input_settings"></a><ahref="#user-content-__input_settings"><code>settings</code></a>: _(Optional)_ A JSON string written to `.gemini/settings.json` to configure the CLI's _project_ settings.
181
181
For more details, see the documentation on [settings files](https://github.com/google-gemini/gemini-cli/blob/main/docs/get-started/configuration.md#settings-files).
Copy file name to clipboardExpand all lines: action.yml
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ inputs:
56
56
required: false
57
57
prompt:
58
58
description: |-
59
-
A string passed to the Gemini CLI's [`--prompt` argument](https://github.com/google-gemini/gemini-cli/blob/main/docs/get-started/configuration.md#command-line-arguments).
59
+
A string passed to the Gemini CLI as a [positional argument](https://github.com/google-gemini/gemini-cli/blob/main/docs/get-started/configuration.md#command-line-arguments).
60
60
required: false
61
61
default: 'You are a helpful assistant.'
62
62
settings:
@@ -294,14 +294,14 @@ runs:
294
294
if [[ "${GEMINI_DEBUG}" = true ]]; then
295
295
echo "::warning::Gemini CLI debug logging is enabled. This will stream responses, which could reveal sensitive information if processed with untrusted inputs."
296
296
echo "::: Start Gemini CLI STDOUT :::"
297
-
if ! gemini --debug --yolo --prompt "${PROMPT}" --output-format json 2> >(tee "${TEMP_STDERR}" >&2) | tee "${TEMP_STDOUT}"; then
297
+
if ! gemini --debug --yolo --output-format json "${PROMPT}" 2> >(tee "${TEMP_STDERR}" >&2) | tee "${TEMP_STDOUT}"; then
298
298
FAILED=true
299
299
fi
300
300
# Wait for async stderr logging to complete. This is because process substitution in Bash is async so let tee finish writing to ${TEMP_STDERR}
301
301
sleep 1
302
302
echo "::: End Gemini CLI STDOUT :::"
303
303
else
304
-
if ! gemini --yolo --prompt "${PROMPT}" --output-format json 2> "${TEMP_STDERR}" 1> "${TEMP_STDOUT}"; then
304
+
if ! gemini --yolo --output-format json "${PROMPT}" 2> "${TEMP_STDERR}" 1> "${TEMP_STDOUT}"; then
0 commit comments