asdf-vm / asdf

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

fix: correct list usage in asdf.nu #1738

Closed Cantido closed 2 weeks ago

Cantido commented 3 months ago

After installing asdf.nu in my nushell config, running asdf plugin list gives me the following error:

❯ asdf plugin list
Error: nu::shell::cannot_pass_list_to_external

  × Lists are not automatically spread when calling external commands
     ╭─[/opt/asdf-vm/asdf.nu:110:27]
 109 │ 
 110 │         ^asdf plugin list $flags | lines | parse -r $template | str trim
     ·                           ───┬──
     ·                              ╰── Spread operator (...) is necessary to spread lists
 111 │     }
     ╰────
  help: Either convert the list to a string or use the spread operator, like so: ...$flags

This change fixes the error.

Summary

Uses the spread operator when passing a list into the asdf command

Fixes: No issue created, just the fix (would you like me to create an issue?)

Other Information

Cantido commented 3 months ago

oops i didn't realize this project is using Conventional Commits, I'll get that fixed