nushell/crates/nu-command/tests
Devyn Cairns c10aa2cf09
collect: don't require a closure (#12788)
# Description

This changes the `collect` command so that it doesn't require a closure.
Still allowed, optionally.

Before:

```nushell
open foo.json | insert foo bar | collect { save -f foo.json }
```

After:

```nushell
open foo.json | insert foo bar | collect | save -f foo.json
```

The closure argument isn't really necessary, as collect values are also
supported as `PipelineData`.

# User-Facing Changes
- `collect` command changed

# Tests + Formatting
Example changed to reflect.

# After Submitting
- [ ] release notes
- [ ] we may want to deprecate the closure arg?
2024-05-17 18:46:03 +02:00
..
commands collect: don't require a closure (#12788) 2024-05-17 18:46:03 +02:00
format_conversions Replace ExternalStream with new ByteStream type (#12774) 2024-05-16 07:11:18 -07:00
main.rs ♻️ rework some help strings (#12306) 2024-03-27 08:41:02 -05:00