Skip to content
Discussion options

You must be logged in to vote

You don't need module spam if you save the body into spam.nu file, this should work for you:

export def foo [] {
    "foo"
}

export alias bar = echo "bar"

export-env {
    load-env { BAZ: "baz" }
}

Because the file itself is already a module

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@free-hook
Comment options

@free-hook
Comment options

@WindSoilder
Comment options

@free-hook
Comment options

Answer selected by free-hook
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants