-
Notifications
You must be signed in to change notification settings - Fork 632
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
Shell completions #1197
Comments
Hi @Freed-Wu, thanks for the idea. Seems a good suggestion to facilitate user experience. However I don't have experience in it. Would you mind implementing a POC to show how this would integrate with Something we should keep it mind is that installing Side question: is this something that would integrate well with Windows cmd ? |
|
Why not |
Fine with And thanks for clarification on supported shells. |
OK. I've give a PR with 'completion'
You're welcome. |
Using Click might be helpful here: https://click.palletsprojects.com/en/8.1.x/shell-completion/ |
As a matter of fact, yes we are (re-)considering the idea of using click (or Typer). However this would mean adding a (quite big) dependency to the project which we'd like to avoid -since CLI is only an "option" for huggingface_hub, not everyone uses it-. There are also suggestions from @Freed-Wu about how to implement shell completion with the current setup (see #1207 (comment)). |
Is your feature request related to a problem? Please describe.
Add shell completions for huggingface-cli
Describe the solution you'd like
https://docs.iterative.ai/shtab
Describe alternatives you've considered
https://docs.iterative.ai/shtab/#alternatives
The text was updated successfully, but these errors were encountered: