export extern

Define an extern and export it from a module

Signature

> export extern (def_name) (params)

Parameters

  • def_name: definition name
  • params: parameters

Notes

This command is a parser keyword. For details, check:
  https://www.nushell.sh/book/thinking_in_nushell.html

Examples

Export the signature for an external command

> export extern echo [text: string]