Open tpgillam opened 3 months ago
I believe this is intentionally hidden, perhaps because it's only intended to be run once? I'm not sure.
Not a very good reason but I think one reason is that generate-shell-completion
kind of messes with the ruff --help
layout. But we could solve this by shortening the command name to completion
or shell-completion
.
What's interesting is that gt
also doesn't show the completion
command when running gt --help
. It only shows it when entering an invalid command.
What's interesting is that gt also doesn't show the completion command when running gt --help. It only shows it when entering an invalid command.
Probably a silly question - what program is gt
please? :) A web search isn't helping me much.
Oh sorry. It's graphite CLI.
Being somewhat pedantic, I did notice that docs/configuration.md says that ruff help
gives the "full list" of top-level commands, so if deciding to hide this command then perhaps this should be modified to "gives a subset of the top-level commands"!
At least to my taste, I like the guarantee of the 'full list' though.
As-of ruff 0.4.10, I've observed that:
ruff generate-shell-completion
is documented in the docsruff help generate-shell-completion
generates some useful helpruff help
does not listgenerate-shell-completion
in the "Commands" sectionPersonally I think it would aid discoverability to add it to the list in the top-level
ruff help
listing.