nushell/crates/nu-cmd-lang/src
Antoine Stevan 1662e61ecb
deprecate def-env and export def-env (#10715)
follow-up to
- https://github.com/nushell/nushell/pull/10566

# Description
this PR deprecates the use of `def-env` and `export def-env`

these two core commands will be removed in 0.88

# User-Facing Changes
using `def-env` will give a warning
```nushell
> def-env foo [] { print "foo" }; foo
Error:   × Deprecated command
   ╭─[entry #1:1:1]
 1 │ def-env foo [] { print "foo" }; foo
   · ───┬───
   ·    ╰── `def-env` is deprecated and will be removed in 0.88.
   ╰────
  help: Use `def --env` instead


foo
```

# Tests + Formatting

# After Submitting
2023-10-19 13:50:16 +08:00
..
core_commands deprecate def-env and export def-env (#10715) 2023-10-19 13:50:16 +08:00
default_context.rs Allow exporting extern-wrapped (#10025) 2023-08-18 20:45:33 +03:00
example_support.rs Use slices directly instead of &Vec (#10328) 2023-09-12 11:38:20 +08:00
example_test.rs Remove Signature.vectorizes_over_list entirely (#9777) 2023-07-26 23:34:43 +02:00
lib.rs cratification: Example support (#8231) 2023-02-27 13:58:56 -08:00