nushell/crates/nu-command/src/system
Leon d8027656b5
benchmark now pipes input into the closure (#7776)
# Description

Closes #7762. See issue for motivation.

# User-Facing Changes

Something like this is now possible without having to split this into 2
commands:
```
fetch "https://www.gutenberg.org/files/11/11-0.txt" | benchmark { str downcase | split words | uniq -c | sort-by count --reverse | first 10 }
```

# Tests + Formatting

Don't forget to add tests that cover your changes.

Make sure you've run and fixed any issues with these commands:

- `cargo fmt --all -- --check` to check standard code formatting (`cargo
fmt --all` applies these changes)
- `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A
clippy::needless_collect` to check that you're using the standard code
style
- `cargo test --workspace` to check that all tests pass

# 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: Stefan Holderbach <sholderbach@users.noreply.github.com>
2023-01-22 19:18:28 +01:00
..
benchmark.rs benchmark now pipes input into the closure (#7776) 2023-01-22 19:18:28 +01:00
complete.rs Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
exec.rs Add "fall-through" signatures (#7527) 2022-12-22 00:33:26 +02:00
mod.rs add a new command to query the registry on windows (#6670) 2022-10-07 13:54:36 -05:00
nu_check.rs Expand Nushell's help system (#7611) 2022-12-30 17:44:37 +02:00
ps.rs Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
registry_query.rs Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00
run_external.rs Trim quotes when shelling out to cmd.exe (#7740) 2023-01-13 11:00:30 -08:00
sys.rs Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
which_.rs Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00