W3cubDocs

/Nushell

extern for core

Define a signature for an external command.

Signature

> extern {flags} (def_name) (params)

Parameters

  • def_name: definition name
  • params: parameters

Input/output types:

input output
nothing nothing

Examples

Write a signature for an external command

>externecho [text: string]

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/extern.html