-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mark global versions in the output of list command #617
Comments
So there was a PR for this (#761 and duplicate #762), but it didn't get much traction. The available PR output looks like a whitespace-lacking One possible demerit would be the fact that ❯ hyperfine 'asdf list' 'asdf current'
Benchmark #1: asdf list
Time (mean ± σ): 22.8 ms ± 0.6 ms [User: 6.6 ms, System: 13.4 ms]
Range (min … max): 20.8 ms … 25.3 ms 114 runs
Benchmark #2: asdf current
Time (mean ± σ): 189.8 ms ± 1.7 ms [User: 57.3 ms, System: 142.6 ms]
Range (min … max): 188.4 ms … 194.8 ms 15 runs
Summary
'asdf list' ran
8.33 ± 0.22 times faster than 'asdf current'
❯ hyperfine --warmup 3 'asdf list ruby' 'asdf current ruby'
Benchmark #1: asdf list ruby
Time (mean ± σ): 12.6 ms ± 0.3 ms [User: 4.3 ms, System: 6.7 ms]
Range (min … max): 11.2 ms … 13.5 ms 205 runs
Benchmark #2: asdf current ruby
Time (mean ± σ): 61.7 ms ± 0.5 ms [User: 18.7 ms, System: 45.4 ms]
Range (min … max): 60.8 ms … 62.8 ms 46 runs
Summary
'asdf list ruby' ran
4.88 ± 0.13 times faster than 'asdf current ruby' This "marker" feature is available in most other version managers. The exact output is different based on tool, but here is a compilation of examples from some alternatives. It may be worth chiming-in on what output is best:
|
Expected behavior
Would be user friendly if the list command would somehow mark the currently selected versions of the environments.
This way it's clear that go 1.13.4 and groovy 2.5.8 would be used.
I'm aware of
asdf current
, but it only shows the currently selected versions, without the context of what else is installed.Actual behavior
Environment
OS: MacOS 10.15.1
asdf version: v0.7.5
The text was updated successfully, but these errors were encountered: