2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-01-29 21:33:31 +00:00
nushell/crates/nu-command/tests/commands
pwygab 3395beaa56
Make seq return a ListStream where possible ()
# Description

Title.

# User-Facing Changes

Faster seq that works better with functions that take in `ListStream`s.

# 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.
2022-12-06 18:48:03 -08:00
..
date Require input for date format () 2022-11-10 11:16:14 +13:00
hash_ Deprecate hash base64, extend decode and add encode commands () 2022-06-26 00:35:23 +03:00
math Fix failing test after () 2022-12-01 00:48:02 +01:00
move_ Fix mv error message issues (arrows, Windows paths) () 2022-11-23 16:55:13 +13:00
network Clippy fix for Rust 1.63 () 2022-08-11 11:54:54 -05:00
path add -n for path expand, so it doesn't follow symlink () 2022-08-10 08:43:56 -05:00
platform Return error when kill didn't terminate successfully () 2022-08-18 11:58:51 -05:00
query Feature cleanup () 2022-11-22 16:58:11 -08:00
random Another batch of command tests () 2022-02-16 07:38:02 -05:00
skip str collect => str join () 2022-09-11 11:48:27 +03:00
str_ Eval external command result immediately when using do command with -c () 2022-09-30 07:14:02 -05:00
take Return errors on unexpected inputs to take and first () 2022-11-13 15:15:27 -08:00
url new command url parse () and url subcommands tests () 2022-11-19 10:14:29 -08:00
alias.rs let alias list aliases () 2022-10-14 21:51:44 +02:00
all.rs Allow iteration blocks to have an optional extra index parameter (alternative to -n flags) () 2022-11-21 14:35:11 +01:00
any.rs Allow iteration blocks to have an optional extra index parameter (alternative to -n flags) () 2022-11-21 14:35:11 +01:00
append.rs Strip trailing whitespace in files () 2022-02-21 08:38:15 -05:00
break_.rs New commands: break, continue, return, and loop () 2022-11-25 09:39:16 +13:00
cal.rs Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
cd.rs fix: fixcd () 2022-11-05 07:38:39 +13:00
compact.rs Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
continue_.rs New commands: break, continue, return, and loop () 2022-11-25 09:39:16 +13:00
cp.rs Add decimals to int when using into string --decimals () 2022-08-12 21:13:50 -05:00
def.rs Move from source to source-env () 2022-09-01 08:32:56 +12:00
default.rs Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
do_.rs A set of fixes for stderr redirect () 2022-11-24 16:58:15 +13:00
drop.rs Rename all?, any? and empty? () 2022-09-05 16:41:06 +02:00
each.rs Remove erroneous test () 2022-11-21 17:04:36 +01:00
echo.rs Require block params () 2022-02-17 06:40:24 -05:00
empty.rs Fix $in in blocks given to any and all () 2022-11-01 11:36:54 -07:00
enter.rs Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
error_make.rs add unspanned flag to error make, add tests () 2022-07-12 06:03:50 -05:00
every.rs Another batch of command tests () 2022-02-16 07:38:02 -05:00
export_def.rs allow -h flags for export subcommands () 2022-08-02 10:26:16 -05:00
find.rs Use 'table' on scripts and -c commands () 2022-02-09 05:58:54 -05:00
first.rs Error on negative argument of first () 2022-11-23 17:04:28 +13:00
flatten.rs str collect => str join () 2022-09-11 11:48:27 +03:00
format.rs Refactor: introduce general operate commands to reduce duplicate code () 2022-10-29 16:29:46 -05:00
g.rs Make g - switch to the last used shell () 2022-08-06 10:11:03 -05:00
get.rs Friendly error message for access beyond end () 2022-10-29 19:47:50 +02:00
glob.rs Filter out empty glob patterns to "glob" command () 2022-10-15 18:00:38 +02:00
group_by.rs more test fixes () 2022-02-16 12:24:45 -06:00
headers.rs Type validation for headers command () () 2022-11-09 16:43:24 -08:00
help.rs add signature information when get help on one command () 2022-11-20 07:22:42 -06:00
histogram.rs add quantile column () 2022-05-18 20:47:26 -05:00
insert.rs Allow iteration blocks to have an optional extra index parameter (alternative to -n flags) () 2022-11-21 14:35:11 +01:00
into_filesize.rs fix overflow on negative bytes () 2022-11-10 22:33:15 +01:00
into_int.rs Binary into int () 2022-07-04 06:31:50 +12:00
last.rs Error on negative argument to last () 2022-11-23 17:04:04 +13:00
length.rs Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
let_.rs Limited mutable variables () 2022-11-11 19:51:08 +13:00
lines.rs Handle mixed LF+CRLF in lines () 2022-12-02 11:30:26 -05:00
ls.rs Run a round of clippy --fix to fix a ton of lints () 2022-11-04 15:11:17 -05:00
merge.rs remove block input support in merge () 2022-11-23 17:01:27 +13:00
mkdir.rs Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
mod.rs Make seq return a ListStream where possible () 2022-12-06 18:48:03 -08:00
mut_.rs Allow $env and mutable records to be mutated by = (closes ) () 2022-12-06 19:51:55 +02:00
n.rs Refactor shell switching related code () 2022-08-07 13:30:40 -05:00
nu_check.rs A set of fixes for stderr redirect () 2022-11-24 16:58:15 +13:00
open.rs Feature cleanup () 2022-11-22 16:58:11 -08:00
p.rs Refactor shell switching related code () 2022-08-07 13:30:40 -05:00
parse.rs replace the regex crate with the fancy-regex crate () 2022-08-04 14:51:02 -05:00
prepend.rs Use 'table' on scripts and -c commands () 2022-02-09 05:58:54 -05:00
print.rs add -e flag to print, to print the value to stderr () 2022-07-02 09:54:49 -05:00
range.rs Use 'table' on scripts and -c commands () 2022-02-09 05:58:54 -05:00
redirection.rs A set of fixes for stderr redirect () 2022-11-24 16:58:15 +13:00
reduce.rs Allow iteration blocks to have an optional extra index parameter (alternative to -n flags) () 2022-11-21 14:35:11 +01:00
reject.rs add signature information when get help on one command () 2022-11-20 07:22:42 -06:00
rename.rs add rename () 2022-05-13 06:47:11 -05:00
return_.rs New commands: break, continue, return, and loop () 2022-11-25 09:39:16 +13:00
reverse.rs make first behave same way as last: always return list when with number argument () 2022-09-28 17:08:17 -05:00
rm.rs make cd, cp, ls, mv, open and rm automatically strip ansi codes () 2022-08-04 06:59:20 -05:00
roll.rs str collect => str join () 2022-09-11 11:48:27 +03:00
rotate.rs str collect => str join () 2022-09-11 11:48:27 +03:00
run_external.rs add some float operations with filesize () 2022-09-28 17:07:50 -05:00
save.rs add -f, --force for save command () 2022-12-01 06:26:17 -06:00
select.rs Fix ignore-errors for select () 2022-11-10 10:57:44 +13:00
semicolon.rs Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
seq.rs Make seq return a ListStream where possible () 2022-12-06 18:48:03 -08:00
seq_char.rs Simplify seq char () 2022-11-09 17:06:47 -08:00
shells.rs Refactor shell listing related code () 2022-08-08 06:31:24 -05:00
sort.rs Add -n flag to sort (formerly only available on sort-by) () 2022-12-01 07:11:30 -06:00
sort_by.rs Require column name(s) in sort-by () 2022-11-10 11:16:51 +13:00
source_env.rs Improve erroring of config nu and config env () 2022-10-15 08:28:54 -05:00
split_by.rs Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
split_column.rs refactor: change column names from 'Column*' to 'column*' () 2022-02-19 19:26:47 -05:00
split_row.rs Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
table.rs Try to fix () 2022-12-04 17:47:46 -06:00
touch.rs chore: chrono_update () 2022-11-27 07:19:02 +13:00
transpose.rs Prevents duplicate fields in transpose -r () 2022-06-22 19:19:06 -05:00
try_.rs fix try for external command runs to failed () 2022-12-02 05:58:32 +13:00
uniq.rs uniq -i does not convert to lowercase () () 2022-11-23 15:46:20 -08:00
uniq_by.rs uniq-by command () 2022-12-02 11:36:01 +01:00
update.rs Allow iteration blocks to have an optional extra index parameter (alternative to -n flags) () 2022-11-21 14:35:11 +01:00
upsert.rs fix upsert index of zero () 2022-12-06 15:26:27 -05:00
use_.rs add more helpful error for calling a decl that exists in a module () 2022-10-22 11:41:31 -05:00
where_.rs Feature cleanup () 2022-11-22 16:58:11 -08:00
which.rs Don't assume external ls () 2022-03-24 16:42:41 +13:00
while_.rs Add support for while loops () 2022-11-12 07:21:45 +13:00
with_env.rs fixed some more tests () 2022-02-22 11:32:29 -05:00
wrap.rs Use 'table' on scripts and -c commands () 2022-02-09 05:58:54 -05:00
zip.rs str collect => str join () 2022-09-11 11:48:27 +03:00