Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

feat: Enable general location support in the CLI #143

Merged
merged 9 commits into from
May 18, 2023
Merged

Conversation

jasonborg
Copy link
Contributor

@jasonborg jasonborg commented May 17, 2023

This change allows the user to specify an arbitrary region via the --location option to the init command. The --location option previously existed, however it only allowed the default value of us-central1. While the URL of databases in different regions will have different naming conventions, the CLI already made no assumptions in this regard and no extra changes were required to find the DB URL to use. The changes were the following:

  • The init command no longer enforces the default of us-central1 for the --location argument.
  • Some enhancements to checks and user messages on errors were added for the init command when --location is used.
  • The README was updated with documentation regarding regions

fixes #134
fixes #141

mctavish and others added 5 commits May 10, 2023 10:57
Note that it currently does not work; the location needs to be fully supported first
The CLI will automatically find the DB url, regardless of region.
It has been moved to a separate PR.
@jasonborg jasonborg requested a review from mctavish May 17, 2023 14:49
Copy link
Contributor

@mctavish mctavish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

snapshot_dbg_cli/init_command.py Outdated Show resolved Hide resolved
@jasonborg jasonborg merged commit f47703f into main May 18, 2023
@jasonborg jasonborg deleted the location-support branch May 18, 2023 18:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
2 participants