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

Group autocomplete #624

Merged
merged 7 commits into from
Sep 11, 2023
Merged

Group autocomplete #624

merged 7 commits into from
Sep 11, 2023

Conversation

athoscouto
Copy link
Collaborator

Adds autocomplete for group commands.

  • Adds autocomplete for group names (first argument of most group commands).
  • Adds autocomplete for group flag in turso db create.
  • Adds autocomplete for locations on turso group locations add $GROUP ..., only autocompleting missing locations.
  • Adds autocomplete for locations on turso group locations remove $GROUP ..., only autocompleting existing locations.

@athoscouto athoscouto requested a review from gris September 11, 2023 20:45
@athoscouto athoscouto temporarily deployed to internal September 11, 2023 20:45 — with GitHub Actions Inactive
}
for _, group := range groups {
if group.Name == name {
return group, nil
Copy link
Collaborator

Choose a reason for hiding this comment

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

just a nit: the happy path being nested made this code a bit more difficult to read. but no need to change this at all

@athoscouto athoscouto merged commit 9480e3c into main Sep 11, 2023
@athoscouto athoscouto deleted the athos/group-autocomplete branch September 11, 2023 21:31
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