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

search.nu errors out upon loading within nushell version 0.102.0 #3

Open
mayersj1 opened this issue Feb 11, 2025 · 0 comments
Open

Comments

@mayersj1
Copy link

When attempting to 'use ./bru/bru' from within my config.nu file, errors are thrown for each def []:

Error: nu::parser::parse_mismatch

  × Parse mismatch during operation.
   ╭─[/Users/smayer/.config/nushell/bru/bru/search.nu:2:34]
 1 │ # search forumalae
 2 │ def search-formulae [terms: any] = {
   ·                                  ┬
   ·                                  ╰── expected colon (:) before type signature
 3 │     return ([(^brew search --formulae $terms), (char newline)]
   ╰────

The solution is to remove the initial '=' sign from the definition so that

def search-formulae [terms: any] = {
becoes
def search-formulae [terms: any] {

Doing this for each def[] allows bru to be loaded without error

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

1 participant