W3cubDocs

/Nushell

export use for core

Use definitions from a module and export them from this module.

Signature

> export use {flags} (module) (members)

Parameters

  • module: Module or module file
  • members: Which members of the module to import

Input/output types:

input output
nothing nothing

Examples

Re-export a command from another module

>modulespam { export deffoo [] { "foo" } }
moduleeggs { export usespamfoo }
useeggsfoo
foo

foo

Notes

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_use.html