Skip to content

deprecate def-env and export def-env#10715

Merged
WindSoilder merged 2 commits intonushell:mainfrom
amtoine:deprecate-dev-env
Oct 19, 2023
Merged

deprecate def-env and export def-env#10715
WindSoilder merged 2 commits intonushell:mainfrom
amtoine:deprecate-dev-env

Conversation

@amtoine
Copy link
Copy Markdown
Member

@amtoine amtoine commented Oct 14, 2023

follow-up to

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

> 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

@amtoine amtoine added status:wait-until-after-nushell-release notes:mention Include the release notes summary in the "Hall of Fame" section category:deprecation Related to the deprecation of commands/features/options labels Oct 14, 2023
@amtoine amtoine marked this pull request as draft October 14, 2023 11:02
@amtoine
Copy link
Copy Markdown
Member Author

amtoine commented Oct 14, 2023

📯 the removal is ready in the remove-def-env branch

@amtoine amtoine marked this pull request as ready for review October 18, 2023 16:40
Copy link
Copy Markdown
Contributor

@WindSoilder WindSoilder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Let's go and try it

@WindSoilder WindSoilder merged commit 1662e61 into nushell:main Oct 19, 2023
@amtoine amtoine deleted the deprecate-dev-env branch October 19, 2023 16:01
gaetschwartz pushed a commit to gaetschwartz/nushell that referenced this pull request Oct 20, 2023
follow-up to
- nushell#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 nushell#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
amtoine added a commit to amtoine/scripts that referenced this pull request Oct 25, 2023
commands run
```shell
sd "def-env" "def --env" **/*.nu
```

related to
- nushell/nushell#10715
WindSoilder pushed a commit that referenced this pull request Nov 19, 2023
follow-up to
- #10715

> **Important**
> wait for between 0.87 and 0.88 to land this

# Description
it's time for removal again 😋 
this PR removes `def-env` and `export def-env` in favor of `def --env`

# User-Facing Changes
`def-env` and `export def-env` will not be found anymore.

# Tests + Formatting

# After Submitting
hardfau1t pushed a commit to hardfau1t/nushell that referenced this pull request Dec 14, 2023
follow-up to
- nushell#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
hardfau1t pushed a commit to hardfau1t/nushell that referenced this pull request Dec 14, 2023
follow-up to
- nushell#10715

> **Important**
> wait for between 0.87 and 0.88 to land this

# Description
it's time for removal again 😋 
this PR removes `def-env` and `export def-env` in favor of `def --env`

# User-Facing Changes
`def-env` and `export def-env` will not be found anymore.

# Tests + Formatting

# After Submitting
hyiltiz added a commit to hyiltiz/asdf that referenced this pull request Dec 23, 2023
dmatos2012 pushed a commit to dmatos2012/nushell that referenced this pull request Feb 20, 2024
follow-up to
- nushell#10715

> **Important**
> wait for between 0.87 and 0.88 to land this

# Description
it's time for removal again 😋 
this PR removes `def-env` and `export def-env` in favor of `def --env`

# User-Facing Changes
`def-env` and `export def-env` will not be found anymore.

# Tests + Formatting

# After Submitting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:deprecation Related to the deprecation of commands/features/options notes:mention Include the release notes summary in the "Hall of Fame" section status:wait-until-after-nushell-release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants