feat: Add custom completer for cargo to complete aliases defined in config.toml by nooma-42 · Pull Request #15319 · rust-lang/cargo (original) (raw)

What does this PR try to resolve?

Related to #14520

This PR introduces auto-completion for the cargo <TAB> option. When a user types cargo <TAB> and presses the TAB key, the system will automatically suggest aliases defined in config.toml

How should we test and review this PR?

To verify this feature, follow these steps:

  1. In the terminal, type cargo <TAB>
  2. Press the TAB key.
  3. You should see aliases suggestions 2025-03-17.4.32.11.mov