Skip to content

deprecate --ignore-shell-errors and --ignore-program-errors in do #14385

Merged
WindSoilder merged 4 commits intonushell:mainfrom
WindSoilder:deprecate_do_flags
Nov 27, 2024
Merged

deprecate --ignore-shell-errors and --ignore-program-errors in do #14385
WindSoilder merged 4 commits intonushell:mainfrom
WindSoilder:deprecate_do_flags

Conversation

@WindSoilder
Copy link
Copy Markdown
Contributor

Description

As title, this pr is going to deprecate --ignore-shell-errors and --ignore-program-errors.

Because I think these two flags makes do command complicate, and it should be easy to use -i instead.

User-Facing Changes

After the pr, using these two flags will raise deprecated warning.

> do --ignore-program-errors { ^pwd }
Error:   × Deprecated option
   ╭─[entry #2:1:1]
 1  do --ignore-program-errors { ^pwd }
   · ─┬
   ·  ╰── `--ignore-program-errors` is deprecated and will be removed in 0.102.0.
   ╰────
  help: Please use the `--ignore-errors(-i)`
/home/windsoilder/projects/nushell
> do --ignore-shell-errors { ^pwd }
Error:   × Deprecated option
   ╭─[entry #3:1:1]
 1  do --ignore-shell-errors { ^pwd }
   · ─┬
   ·  ╰── `--ignore-shell-errors` is deprecated and will be removed in 0.102.0.
   ╰────
  help: Please use the `--ignore-errors(-i)`
/home/windsoilder/projects/nushell

Tests + Formatting

NaN

@WindSoilder WindSoilder added the category:deprecation Related to the deprecation of commands/features/options label Nov 19, 2024
@WindSoilder WindSoilder merged commit e0c0d39 into nushell:main Nov 27, 2024
@github-actions github-actions bot added this to the v0.101.0 milestone Nov 27, 2024
@blended-bram
Copy link
Copy Markdown

Seems I missed the update in between and when brew upgraded to 104 my shell broke because --ignore-shell-errors was part of the (default) create_left_prompt function that was in the env config.

The result was that the shell got so broken that it couldn't even find itself anymore, as PATH got very broken as well.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants