Use 'table' on scripts and -c commands (#4377)

* Use 'table' on scripts and -c commands

* Fix tests

* Oops, missed a spot
This commit is contained in:
JT
2022-02-09 05:58:54 -05:00
committed by GitHub
parent 659da3c4a4
commit f9e1c4ef50
27 changed files with 125 additions and 77 deletions

View File

@ -111,7 +111,7 @@ mod it_evaluation {
ls
| sort-by name
| get name
| each { nu --testbin cococo $it | lines }
| each { nu --testbin cococo $it }
| get 1
"#
));
@ -136,7 +136,7 @@ mod it_evaluation {
r#"
open nu_candies.txt
| lines
| each { nu --testbin chop $it | lines}
| each { nu --testbin chop $it}
| get 1
"#
));

View File

@ -22,7 +22,7 @@ fn takes_rows_of_nu_value_strings_and_pipes_it_to_stdin_of_external() {
r#"
open nu_times.csv
| get origin
| each { ^echo $it | nu --testbin chop | lines }
| each { ^echo $it | nu --testbin chop }
| get 2
"#
));
@ -102,7 +102,7 @@ fn subexpression_handles_dot() {
r#"
echo (open nu_times.csv)
| get name
| each { nu --testbin chop $it | lines }
| each { nu --testbin chop $it }
| get 3
"#
));
@ -128,7 +128,7 @@ fn string_interpolation_with_it_column_path() {
let actual = nu!(
cwd: ".",
r#"
echo [[name]; [sammie]] | each { echo $"($it.name)" }
echo [[name]; [sammie]] | each { echo $"($it.name)" } | get 0
"#
);
@ -819,7 +819,7 @@ fn table_literals1() {
let actual = nu!(
cwd: ".",
r#"
echo [[name age]; [foo 13]] | get age
echo [[name age]; [foo 13]] | get age.0
"#
);