nushell/crates/nu-command/src
Antoine Stevan e89866bedb
TEST: add the output to the new with-env example (#8148)
Related to #8119.
Should address the review comment by @sholderbach from #8119.


# Description

this PR adds the output to the new example for the `with-env` command
introduced by #8119.

```bash
with-env {X: "Y", W: "Z"} { [$env.X $env.W] }
```
should output
```bash
["Y", "Z"]
```
hence the proposition from @sholderbach, i.e.
```rust
Some(Value::list(
    vec![Value::test_string("Y"), Value::test_string("Z")],
    Span::test_data(),
))
```

# User-Facing Changes
_none_

# Tests + Formatting

not really a test, only the output value for the last `with-env` example

- ✔️ `cargo fmt --all`
- ✔️ `cargo clippy --workspace -- -D warnings -D
clippy::unwrap_used -A clippy::needless_collect`
- ✔️ `cargo test --workspace`

# After Submitting
_none_
2023-02-21 10:15:35 +00:00
..
bits Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
bytes Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
charting Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
conversions string | fill counts clusters, not graphemes; and doesn't count ANSI escape codes (#8134) 2023-02-20 06:32:20 -06:00
core_commands move ast command to the debug group (#8077) 2023-02-14 18:47:34 +00:00
database Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
dataframe Make plugin commands support examples. (#7984) 2023-02-08 16:14:18 -06:00
date report which datetime couldn't be converted (#7980) 2023-02-06 14:17:07 -06:00
debug move ast command to the debug group (#8077) 2023-02-14 18:47:34 +00:00
deprecated add benchmark to deprecated commands (#8046) 2023-02-11 21:39:55 +00:00
env TEST: add the output to the new with-env example (#8148) 2023-02-21 10:15:35 +00:00
experimental relocate debug commands (#8071) 2023-02-13 16:39:07 +00:00
filesystem Support URLs in start command (#7799) 2023-02-16 13:33:25 +00:00
filters fix rename when it is passed an empty column list to rename (#8086) 2023-02-15 21:47:27 +00:00
formats show more informaiton when there are toml errors (#8140) 2023-02-20 18:50:31 +00:00
generators Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
hash Make plugin commands support examples. (#7984) 2023-02-08 16:14:18 -06:00
math Update few examples of math commands (#7987) 2023-02-06 13:43:00 +01:00
misc Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
network Factorize HTTP commands code (#8088) 2023-02-17 23:10:29 +00:00
path Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
platform Validate input range of du flags (#7962) 2023-02-06 21:34:32 +01:00
random Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
shells Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
strings Improve error when regex rejects pattern. Resolution of #8037 (#8050) 2023-02-12 13:25:40 +00:00
system relocate debug commands (#8071) 2023-02-13 16:39:07 +00:00
viewers Add colors in table --collapse (#8120) 2023-02-20 12:59:33 +00:00
default_context.rs move ast command to the debug group (#8077) 2023-02-14 18:47:34 +00:00
example_test.rs Remove deprecated --numbered flag from four commands (#7777) 2023-02-02 16:59:58 -06:00
input_handler.rs Standardise the use of ShellError::UnsupportedInput and ShellError::TypeMismatch and add spans to every instance of the former (#7217) 2022-12-23 01:48:53 -05:00
lib.rs relocate debug commands (#8071) 2023-02-13 16:39:07 +00:00
progress_bar.rs Reduce again the number of match calls (#7815) 2023-01-24 12:23:42 +01:00
sort_utils.rs Reduce again the number of match calls (#7815) 2023-01-24 12:23:42 +01:00