Add dynamic completions for target names in `rustup target` sub-command
Currently, rustup target add does not support completions for target names.
We should use clap's dynamic completions for this, possibly extending them to other subcommands (see #2268).
I am interested with this as well, maybe we can do this together? @FranciscoTGouveia
@Cloud0310 I think it'd be cool if you can attack #2268 and @FranciscoTGouveia on rustup target *. There will inevitably be an overlap somewhere but I believe one PR can be easily rebased on top of the other. How does that sound?
Sounds good to me, I will try to fix the part that I am interested: dynamic completion is not been enabled in rustup, causing command like rustup component <Tab>'s completion is wrong.
@FranciscoTGouveia Just for the heads up: we have added the basics of dynamic completion in https://github.com/rust-lang/rustup/pull/5033.
Here's more context, you should see the limitation from clap. I suggest once @FranciscoTGouveia is done with issue, we should add docs for this problem.
@FranciscoTGouveia would love to help with the dynamic target completions Are you still planning to work on this, or would you be okay with me taking it (or collaborating)?
Hello @14elias! Thanks for the message. Yes, you can take it. I currently have quite a lot of university work on my plate. If you want to discuss anything please feel free to ping me :)
I believe this can also be extended to other sub-commands, namely rustup target remove.
Would it make sense for me to start working on a PR for that, @rami3l ?
@FranciscoTGouveia Yup, please feel free to claim it :)