Jelle Besseling 4ca47258a0
Add --redirect-combine option to run-external (#8918)
# Description

Add option that combines both output streams to the `run-external`
command.

This allows you to do something like this:

```nushell
let res = do -i { run-external --redirect-combine <command that prints to stdout and stderr> } | complete

if $res.exit_code != 0 {
  # Only print output when command has failed.
  print "The command has failed, these are the logs:"
  print $res.stdout
}
```

# User-Facing Changes

No breaking changes, just an extra option.

# Tests + Formatting

Added a test that checks the new option

# After Submitting
<!-- If your PR had any user-facing changes, update [the
documentation](https://github.com/nushell/nushell.github.io) after the
PR is merged, if necessary. This will help us keep the docs up to date.
-->

Co-authored-by: Jelle Besseling <jelle@bigbridge.nl>
2023-04-28 07:55:48 -05:00
..
2022-11-22 16:58:11 -08:00
2023-03-15 18:54:55 +13:00
2023-03-15 18:54:55 +13:00
2023-01-22 19:49:40 +01:00
2023-03-15 18:54:55 +13:00
2023-04-15 17:11:02 +12:00
2022-12-22 00:33:26 +02:00
2022-09-11 11:48:27 +03:00
2023-03-15 18:54:55 +13:00
2023-03-15 18:54:55 +13:00
2023-04-28 13:25:44 +02:00
2022-02-07 14:54:06 -05:00
2023-03-15 18:54:55 +13:00
2023-03-15 18:54:55 +13:00
2023-03-15 18:54:55 +13:00
2023-04-28 13:25:44 +02:00
2023-03-15 18:54:55 +13:00
2023-03-18 08:58:13 +13:00
2023-03-15 18:54:55 +13:00
2022-09-11 11:48:27 +03:00
2023-03-28 12:40:29 -07:00
2023-04-28 13:25:44 +02:00
2023-04-28 13:25:44 +02:00
2023-04-28 13:25:44 +02:00
2023-04-28 13:25:44 +02:00
2023-04-28 13:25:44 +02:00
2023-03-15 18:54:55 +13:00
2023-04-28 13:25:44 +02:00
2023-03-17 11:53:46 +13:00
2023-04-28 13:25:44 +02:00
2023-04-28 13:25:44 +02:00
2023-04-28 13:25:44 +02:00
2023-04-28 13:25:44 +02:00
2023-04-28 13:25:44 +02:00
2023-02-27 20:44:05 +13:00
2023-03-17 11:53:46 +13:00
2023-03-15 18:54:55 +13:00