Skip to content
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

feat: improved completions for version in commands for asdf.nu #1760

Merged
merged 3 commits into from
Dec 18, 2024

Conversation

OJarrisonn
Copy link
Contributor

Summary

Improved completions for commands such as asdf global <name> <version> to list the installed versions

Added "complete asdf plugin versions installed" and "complete asdf plugin versions all" that produce completions for the installed versions and for all versions available for a given plugin

Improved asdf install completion to list the installed plugins and all the available versions

Fixes: no fixes

Other Information

Improved completions for commands such as `asdf global <name> <version>` to list the installed versions

Added "complete asdf plugin versions installed" and "complete asdf plugin versions all" that produce completions for the installed versions and for all versions available for a given plugin

Improved `asdf install` completion to list the installed plugins and all the available versions
@OJarrisonn OJarrisonn requested a review from a team as a code owner June 1, 2024 20:41
@BraDaga
Copy link

BraDaga commented Jun 2, 2024

Ок

@OJarrisonn OJarrisonn changed the title feat: improved completions for version in commands feat: improved completions for version in commands for asdf.nu Jun 2, 2024
let versions = ^asdf list $plugin
| lines
| each { |line| $line | str trim }
| each { |version| if ($version | str starts-with "*") {{value: ($version | str substring 1..), description: "current global"}} else {{value: $version, description: ""}} }
Copy link
Member

@Stratus3D Stratus3D Dec 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: The * star indicates the version is currently selected, not that it is 'current global'. I'm not familiar with nushell so I may not be reading this correctly. Maybe just say current version?

@Stratus3D
Copy link
Member

Thanks for the PR @OJarrisonn and sorry for the late reply. I left one comment about the description on the installed version preceded by a * star. Otherwise the changes look good to me.

@Stratus3D Stratus3D merged commit e8d6372 into asdf-vm:master Dec 18, 2024
7 checks passed
@Stratus3D
Copy link
Member

Thanks for the PR @OJarrisonn ! Changes merged 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants