extern

For core.

Define a signature for an external command.

Command Type

keyword

Signature

> extern {flags} (def_name) (params)

Parameters

  • def_name: The name of the external command signature to define.
  • params: The parameters for the external command signature.

Input/output types:

input output
nothing nothing

Examples

Write a signature for an external command.

> extern echo [text: string]

Notes

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

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.