Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Shell completion scripts outdated #3170

Open
einfachIrgendwer0815 opened this issue Jan 8, 2025 · 4 comments
Open

Shell completion scripts outdated #3170

einfachIrgendwer0815 opened this issue Jan 8, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@einfachIrgendwer0815
Copy link
Contributor

As mentioned here, the shell completion scripts distributed with bat v0.25.0 are missing some of the newly introduced command-line flags/options.

These are:

  • --strip-ansi
  • --binary
  • --completion
@einfachIrgendwer0815 einfachIrgendwer0815 added the bug Something isn't working label Jan 8, 2025
@keith-hall
Copy link
Collaborator

Eventually we would ideally be able to automate the completions instead of having to (remember to) do it for each shell manually: clap-rs/clap#3166

@einfachIrgendwer0815
Copy link
Contributor Author

einfachIrgendwer0815 commented Jan 9, 2025

clap_complete supports generating shell completion files at compile time (clap_complete::aot::generate_to) and at runtime clap_complete::aot::generate. Would that be an option for the time being?

@keith-hall
Copy link
Collaborator

I would personally say yes 🙂

@jpcirrus
Copy link

And, those three new options are missing from the man page.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants