Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Adds a simple bash completion script #277
This works with any loading script named openapi-generator-cli.
This script is relatively simple, relying on fallback to the recently
The script includes a possible extension to allow for per-language
To evaluate, you'll need the script from the gist mentioned above saved somewhere on your path and made executable (
Rather than permanently installing the completion script, you can just source it in your current shell session:
Now you can TABTAB for autocomplete suggestions.
@wing328 we'll want to add this to homebrew, but this will only be available after the next artifact is released.
Description of the PR
(details of the change, additional tests that have been done, reference to the issue for tracking, etc)
@wing328 we could, but I think the script would need some touching up (like make it so that it queries the latest tag from github as the default version). It's unrelated to the bash completions in this PR, so I wouldn't wait on me updating that script to merge this PR.
@wing328 I've modified https://gist.github.com/jimschubert/ce241b0c78140e364f46914ef8ec4103 to pull (or reuse) the latest released tag by default. Let me know what you think, and I can add it to this PR.