rbenv / rbenv

Manage your app's Ruby environment
https://rbenv.org/
MIT License
16.06k stars 1.39k forks source link

rbenv list command to list latest available ruby version for each ruby #1592

Open stevecondylios opened 1 day ago

stevecondylios commented 1 day ago

I've been using rbenv for 10 years yet can never recall how to list the latest available ruby versions for each ruby when I need it (have to look it up every time).

It's done like this:

rbenv install --list

but I always try all the more obvious commands first e.g. rbenv versions, rbenv list etc etc, and inevitably rbenv --help followed by rbenv commands (then reading through all the commands and still not being able to locate one to list available ruby versions to download).


Suggestion

I suggest making

rbenv list

do what

rbenv install --list

currently does.

It's a tiny suggestion, but could make rbenv quite a lot faster to use (since it's so neat, stand-alone, and practical in every other regard, it seems odd to not have such an important action tucked away where it requires a web search or reach for the manual to locate it).

stevecondylios commented 1 day ago

I should add, that when the user sees a tiny list returned (i.e. something like this:

3.0.6
3.1.4
3.2.3
3.3.0
jruby-9.4.6.0
mruby-3.3.0
picoruby-3.0.0
truffleruby-24.0.0
truffleruby+graalvm-24.0.0

), they might try rbenv list --help and perhaps it could show an rbenv list --all option or similar, to do what rbenv install --list-all does.