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

fix: correct list usage in asdf.nu #1738

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 10, 2024

  1. fix: correct list usage in asdf.nu

    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.
    Cantido committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    bcd33c8 View commit details
    Browse the repository at this point in the history