-
Notifications
You must be signed in to change notification settings - Fork 78
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
[Question] Auto-complete for bash / zsh #92
Comments
+1 for this. The Digital Ocean CLI utility, doctl has completion built in where all you have to do is add |
With the release of vultr-cli 2.6.0 the addition of shell completions was added just not documented yet. If you run
These autocompletions will get printed to stdout and will require you to set them up. Some guides
|
yo quick info, we're having trouble generating the shell completions in the Arch Linux package build because we build in a clean environment and there's no api key configured:
We're working around this by exporting a dummy value, but tab completion also requires a dummy value to work if no api key is already configured:
|
This is due to how the CLI is currently designed. One of the first things it checks when executing your command is to see if the API Token is set (doesn't validate it yet). What you are doing is the only way around the current design. Set a dummy value so that it passes initial checks. We have a ongoing ticket that will fix this behavior and introduce new features (#155) |
Is there a way to enable shell completion? If not can this be added as a feature?
The text was updated successfully, but these errors were encountered: