nushell/crates/nu-plugin-test-support/src
Ian Manske 03ee54a4df
Fix try not working with let, etc. (#13885)
# Description
Partialy addresses #13868. `try` does not catch non-zero exit code
errors from the last command in a pipeline if the result is assigned to
a variable using `let` (or `mut`).

This was fixed by adding a new `OutDest::Value` case. This is used when
the pipeline is in a "value" position. I.e., it will be collected into a
value. This ended up replacing most of the usages of `OutDest::Capture`.
So, this PR also renames `OutDest::Capture` to `OutDest::PipeSeparate`
to better fit the few remaining use cases for it.

# User-Facing Changes
Bug fix.

# Tests + Formatting
Added two tests.
2024-09-23 06:44:25 -05:00
..
diff.rs Fix #12280: replace difference crate with similar (#12282) 2024-03-25 21:13:12 -05:00
fake_persistent_plugin.rs Allow plugins to report their own version and store it in the registry (#12883) 2024-06-21 06:27:09 -05:00
fake_register.rs Split the plugin crate (#12563) 2024-04-27 12:08:12 -05:00
lib.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
plugin_test.rs Fix try not working with let, etc. (#13885) 2024-09-23 06:44:25 -05:00
spawn_fake_plugin.rs Split the plugin crate (#12563) 2024-04-27 12:08:12 -05:00