export module
for core> export module {flags} (module) (block)
module
: module name or module pathblock
: body of the module if 'module' parameter is not a pathinput | output |
---|---|
nothing | nothing |
Define a custom command in a submodule of a module and call it
>modulespam {
export moduleeggs {
export deffoo [] { "foo" }
}
}
usespameggs
eggsfoo
foo
This command is a parser keyword. For details, check: https://www.nushell.sh/book/thinking_in_nu.html
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/export_module.html