feat: Add custom completer for cargo help <TAB>
by shannmu · Pull Request #14557 · rust-lang/cargo (original) (raw)
What does this PR try to resolve?
Tracking issue #14520
Add custom completer for cargo help <TAB>
Additional information
The current completer function is quite slow because it executes too many functions. One idea I have is to use the file!() macro to list the filenames under the commands directory, excluding mod.rs, and return them as the completion results. Would this approach be too hacky?