You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cargo can invoke external commands. If there is a cargo-foo binary in the PATH environment variable, we can run it like a Cargo subcommand by using cargo foo.
What i want is to complete cargo fo[TAB] to cargo foo
Describe the solution you'd like
Add a struct like SubcommadCompleter
impl CustomCompleter for SubcommadCompleter
invoke the complete callback when there is no positional argument on Command, or the pos_index is 1.
Please complete the following tasks
Clap Version
master
Describe your use case
Cargo can invoke external commands. If there is a
cargo-foo
binary in thePATH
environment variable, we can run it like a Cargo subcommand by usingcargo foo
.What i want is to complete
cargo fo[TAB]
tocargo foo
Describe the solution you'd like
SubcommadCompleter
CustomCompleter
forSubcommadCompleter
Additional Context
See #3166 to get more context
The text was updated successfully, but these errors were encountered: