2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-02-15 21:48:29 +00:00
nushell/crates/nu-command/tests
Devyn Cairns c10aa2cf09
collect: don't require a closure ()
# 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 () 2024-05-17 18:46:03 +02:00
format_conversions Replace ExternalStream with new ByteStream type () 2024-05-16 07:11:18 -07:00
main.rs ♻️ rework some help strings () 2024-03-27 08:41:02 -05:00