nushell/crates/nu-command/src/env
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
..
config Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
env_command.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
export_env.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
let_env.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
load_env.rs Load env pwd (#7963) 2023-02-05 23:40:46 +01:00
mod.rs Move from source to source-env (#6277) 2022-09-01 08:32:56 +12:00
source_env.rs ensure that when nu evaluates files, it allows early returns (#7415) 2023-02-02 00:02:27 +01:00
with_env.rs TEST: add the output to the new with-env example (#8148) 2023-02-21 10:15:35 +00:00