Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update default-endpoint to fauna endpoint select #288

Merged
merged 3 commits into from
Oct 10, 2023
Merged

Conversation

macmv
Copy link
Contributor

@macmv macmv commented Oct 10, 2023

Ticket(s): ENG-5620

Updates fauna default-endpoint to fauna endpoint select. I'm open to changing the name, this just lines up with fauna stack select.

@macmv macmv requested a review from fauna-chase October 10, 2023 19:01
args.name ??
(await searchSelect({
message: "Select a new default endpoint",
choices: Object.keys(config.rootConfig.endpoints).map((endpoint) => ({
Copy link
Contributor

Choose a reason for hiding this comment

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

what happens if there are no endpoints here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It won't work. I'll add a check for no endpoints, and error early and say something like "create an endpoin with fauna cloud-login"

@macmv macmv merged commit ef37c6a into main Oct 10, 2023
@macmv macmv deleted the update-default-endpoint branch October 10, 2023 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants