1
0
mirror of https://github.com/nushell/nushell.git synced 2025-03-23 03:57:26 +01:00
nushell/crates/nu-command/tests/commands
Reilly Wood 9364bad625
Make to text stream ListStreams ()
This PR changes `to text` so that when given a `ListStream`, it streams
the incoming values instead of collecting them all first.

The easiest way to observe/verify this PR is to convert a list to a very
slow `ListStream` with `each`:
```bash
ls | get name | each {|n| sleep 1sec; $n} | to text
```
The `to text` output will appear 1 item at a time.
2022-12-22 16:38:07 -08:00
..
assignment ++= appendAssign operator () () 2022-12-09 11:20:58 -05:00
date Require input for date format () 2022-11-10 11:16:14 +13:00
hash_
math Better errors when bash-like operators are used () 2022-12-08 12:02:11 +13:00
move_ Fix mv error message issues (arrows, Windows paths) () 2022-11-23 16:55:13 +13:00
network
path
platform
query Feature cleanup () 2022-11-22 16:58:11 -08:00
random
skip Replace row conditions with closures in commands () 2022-12-10 19:24:06 +02:00
str_ Change other instances of $nothing to null () 2022-12-22 12:30:10 -08:00
take Replace row conditions with closures in commands () 2022-12-10 19:24:06 +02:00
url new command url parse () and url subcommands tests () 2022-11-19 10:14:29 -08:00
alias.rs tighter restrictions on alias and def names () 2022-12-22 12:31:34 -08:00
all.rs Replace row conditions with closures in commands () 2022-12-10 19:24:06 +02:00
any.rs Replace row conditions with closures in commands () 2022-12-10 19:24:06 +02:00
append.rs
break_.rs New commands: break, continue, return, and loop () 2022-11-25 09:39:16 +13:00
cal.rs
cd.rs fix: fixcd () 2022-11-05 07:38:39 +13:00
compact.rs
continue_.rs New commands: break, continue, return, and loop () 2022-11-25 09:39:16 +13:00
cp.rs
def.rs tighter restrictions on alias and def names () 2022-12-22 12:31:34 -08:00
default.rs
do_.rs A set of fixes for stderr redirect () 2022-11-24 16:58:15 +13:00
drop.rs
each.rs Remove erroneous test () 2022-11-21 17:04:36 +01:00
echo.rs
empty.rs Fix $in in blocks given to any and all () 2022-11-01 11:36:54 -07:00
enter.rs
error_make.rs
every.rs
exec.rs Add "fall-through" signatures () 2022-12-22 00:33:26 +02:00
export_def.rs
find.rs
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
for_.rs break for, loop, while execution when external command runs to failed () 2022-12-14 16:20:18 +01:00
format.rs prevent panic with format command () 2022-12-19 13:10:02 +01:00
g.rs
get.rs Add some cell path tests () 2022-12-21 23:54:39 +01:00
glob.rs Filter out empty glob patterns to "glob" command () 2022-10-15 18:00:38 +02:00
group_by.rs
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
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
last.rs Error on negative argument to last () 2022-11-23 17:04:04 +13:00
length.rs
let_.rs Limited mutable variables () 2022-11-11 19:51:08 +13:00
lines.rs Replace row conditions with closures in commands () 2022-12-10 19:24:06 +02:00
loop_.rs break for, loop, while execution when external command runs to failed () 2022-12-14 16:20:18 +01:00
ls.rs let UnknownFlag error list out available flags () 2022-12-13 06:45:33 -06:00
merge.rs remove block input support in merge () 2022-11-23 17:01:27 +13:00
mkdir.rs mkdir change flag -s to -v () 2022-12-13 11:56:44 -05:00
mod.rs Make to text stream ListStreams () 2022-12-22 16:38:07 -08:00
mut_.rs Allow $env and mutable records to be mutated by = (closes ) () 2022-12-06 19:51:55 +02:00
n.rs
nu_check.rs A set of fixes for stderr redirect () 2022-11-24 16:58:15 +13:00
open.rs Fix cell path when getting columns of non-records () 2022-12-17 09:14:12 -08:00
p.rs
parse.rs
prepend.rs
print.rs
range.rs
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
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
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
seq_char.rs Simplify seq char () 2022-11-09 17:06:47 -08:00
seq.rs Make seq return a ListStream where possible () 2022-12-06 18:48:03 -08:00
shells.rs
sort_by.rs Require column name(s) in sort-by () 2022-11-10 11:16:51 +13:00
sort.rs Add -n flag to sort (formerly only available on sort-by) () 2022-12-01 07:11:30 -06:00
source_env.rs Initial support for parse-time constants () 2022-12-22 00:21:03 +02:00
split_by.rs
split_column.rs
split_row.rs
table.rs Fix () 2022-12-15 09:55:15 -08:00
to_text.rs Make to text stream ListStreams () 2022-12-22 16:38:07 -08:00
touch.rs chore: chrono_update () 2022-11-27 07:19:02 +13:00
transpose.rs
try_.rs Make $in work in catch closures () 2022-12-22 09:35:41 -06:00
uniq_by.rs uniq-by command () 2022-12-02 11:36:01 +01:00
uniq.rs uniq -i does not convert to lowercase () () 2022-11-23 15:46:20 -08:00
update.rs Improve empty pipelines () 2022-12-08 07:31:57 +13:00
upsert.rs Improve empty pipelines () 2022-12-08 07:31:57 +13:00
use_.rs Make env-related tests more resilient () 2022-12-10 19:23:34 +02:00
where_.rs Move 'where' to parser keywords; Add 'filter' command () 2022-12-10 19:23:24 +02:00
which.rs
while_.rs break for, loop, while execution when external command runs to failed () 2022-12-14 16:20:18 +01:00
with_env.rs Change other instances of $nothing to null () 2022-12-22 12:30:10 -08:00
wrap.rs
zip.rs Better errors when bash-like operators are used () 2022-12-08 12:02:11 +13:00