feat: correct description for version preceded by star

This commit is contained in:
Trevor Brown 2024-12-18 10:31:05 -05:00
parent e8d6372564
commit 04fe7e30ca

View File

@ -87,7 +87,7 @@ module asdf {
let versions = ^asdf list $plugin let versions = ^asdf list $plugin
| lines | lines
| each { |line| $line | str trim } | each { |line| $line | str trim }
| each { |version| if ($version | str starts-with "*") {{value: ($version | str substring 1..), description: "current global"}} else {{value: $version, description: ""}} } | each { |version| if ($version | str starts-with "*") {{value: ($version | str substring 1..), description: "current version"}} else {{value: $version, description: ""}} }
let latest = ^asdf latest $plugin | str trim let latest = ^asdf latest $plugin | str trim