feat: setting to be requested on installation #61
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Request for env var during installation, which get written under the hood to a .env file in the extension's directory.
This PR also includes some typo fix in order for the extension to work. In the prebuilt tools file, the environment variable was set as
CLOUD_SQL_POSTGRES_PROJECTinstead ofCLOUD_SQL_POSTGRESQL_PROJECT.To test this new feature:
git checkout -b install-env origin/install-envgemini extensions install .During the installation, it will ask for the environment variables..geminifolder. This folder is likely to be in your root.cd ~/.gemini/extensions/cloud-sql-postgresql/. In the folder, you will see a new file.env. The values that you set during installation will be shown here.CLOUD_SQL_POSTGRES_USER,CLOUD_SQL_POSTGRES_PASSWORD,CLOUD_SQL_POSTGRES_IP_TYPE, please export those variable before running gemini cli. Optional values are not yet supported in settings. E.g.export CLOUD_SQL_POSTGRES_USER=my_usergemini/mcp listto list the mcp servers. Both thecloud_sql_postgresql_adminandcloud_sql_postgresqlmcp server should show🟢 Ready.