export const
for core> export const {flags} (const_name) (initial_value)
const_name
: constant nameinitial_value
: equals sign followed by constant valueinput | output |
---|---|
nothing | nothing |
Re-export a command from another module
>modulespam { export constfoo=3; }
moduleeggs { export usespamfoo }
useeggsfoo
foo
3
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_const.html