winget-completions.nu with problems?
I've tried to use the winget-completions.nu completions in my config
use C:\Users\username\git-completions.nu *
but when I now start nushell I'm getting the following error:
Error: nu::parser::unknown_command
× Unknown command.
╭─[C:\Users\username\winget-completions.nu:11:1]
11 │ export extern "winget install" [
12 │ query?: string@"nu-complete winget install name",
· ────────────────┬────────────────
· ╰── unknown command
13 │ --query(-q): string@"nu-complete winget install name", # The query used to search for a package
╰────
https://github.com/nushell/nu_scripts/blob/694701430662f08071cc1b88cb3fa438539c39ea/custom-completions/winget/winget-completions.nu#L11
The winget completions probably need to be updated. I think it's been a while since anyone has looked at it. Feel free to find out what's wrong and submit a PR. Thanks!
I'm totally new to nu scripts but only by re-ordering all the def blocks to the top of the file fixed it for me.
@Heart1010 could you please check if the latest version of nu_scripts fixes this problem for you? (Related PR)
@Heart1010 could you please check if the latest version of nu_scripts fixes this problem for you? (Related PR)
Perfect - it's working now! Thanks 👍