-
-
Notifications
You must be signed in to change notification settings - Fork 38
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] Shell completions #245
Comments
Both svlint and svls use clap in the same way to construct the command-line interface. |
Some examples: typst/typst#545 git-lfs/git-lfs#5104 |
Sounds like shell completions could be useful but I'm still not exactly sure what you're after. Perhaps you could open a pull request? |
I am not familiar with rust 😢 I just think shell completions is useful so I hope every program I like can support it. |
- Fixes dalance#245 - Based on example: <https://github.com/clap-rs/clap/blob/clap_complete-v3.2.5/clap_complete/examples/completion-derive.rs> - `svlint --dump-completion=bash > /etc/bash_completion.d/svlint` - <https://serverfault.com/questions/506612/standard-place-for-user-defined-bash-completion-d-scripts>
@Freed-Wu I've added a command-line option |
Works for me! |
Can this program provides completions for common shells? I guess https://docs.rs/clap_complete/latest/clap_complete/ can be a helper. Same as https://github.com/dalance/svls
The text was updated successfully, but these errors were encountered: