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

[Feature] - Allow Partial UUIDs in Commands (Like Docker CLI) #508

Open
TiFosi opened this issue Feb 7, 2025 · 1 comment
Open

[Feature] - Allow Partial UUIDs in Commands (Like Docker CLI) #508

TiFosi opened this issue Feb 7, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@TiFosi
Copy link

TiFosi commented Feb 7, 2025

Is your feature request related to a problem? Please describe.
Currently, vultr-cli requires to input full UUIDs when interacting with resources. This can be inconvenient, especially when frequently managing multiple instances, firewalls, or other resources

Describe the solution you'd like
I propose allowing to reference resources using a short prefix of the UUID, similar to how Docker CLI works. Instead of requiring the full UUID, vultr-cli should accept a unique partial match (e.g., the first 2–3 characters) when specifying a resource

Describe alternatives you've considered
Tab Autocompletion for UUIDs of resources

Example

Instead of:

vultr-cli instance delete 3fa85f64-5717-4562-b3fc-2c963f66afa6

Allow:

vultr-cli instance delete 3fa
@TiFosi TiFosi added the enhancement New feature or request label Feb 7, 2025
@optik-aper
Copy link
Member

I think this will end up being complicated to implement compared but I'm willing to keep this request open and investigate the options when time allows.

@optik-aper optik-aper self-assigned this Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants