asdf-vm / asdf

Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more
https://asdf-vm.com/
MIT License
21.13k stars 763 forks source link

Completion that supports split subcommands(plugin-add -> plugin add) #1748

Open Kurichi opened 2 months ago

Kurichi commented 2 months ago

Is your feature request related to a problem? Please describe

Based on the asdf documentation, it seems that the recommended way to separate subcommands is asdf plugin add rather than asdf plugin-add. However, only the plugin-add method is stored for completion.

Describe the proposed solution

Improve the completions script to support separated subcommands like asdf plugin add.

Describe similar asdf features and why they are not sufficient

You can do the same with asdf plugin-add, but it's a method not documented and is user-unfriendly.

Describe other workarounds you've considered

If asdf plugin-add is the recommended method, it would be considered to revise the documentation.