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

winget-completions.nu with problems? #623

Closed
Heart1010 opened this issue Sep 28, 2023 · 4 comments
Closed

winget-completions.nu with problems? #623

Heart1010 opened this issue Sep 28, 2023 · 4 comments

Comments

@Heart1010
Copy link

Heart1010 commented Sep 28, 2023

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
    ╰────

export extern "winget install" [

@fdncred
Copy link
Collaborator

fdncred commented Sep 28, 2023

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!

@Heart1010
Copy link
Author

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.

@zeratax zeratax mentioned this issue Oct 30, 2023
@godrja
Copy link
Contributor

godrja commented Apr 23, 2024

@Heart1010 could you please check if the latest version of nu_scripts fixes this problem for you? (Related PR)

@Heart1010
Copy link
Author

@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 👍

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

No branches or pull requests

3 participants