mirror of
https://github.com/nushell/nushell.git
synced 2025-08-17 11:51:46 +02:00
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:
@ -62,7 +62,7 @@ fn from_json_text_recognizing_objects_independently_to_table() {
|
||||
open katz.txt
|
||||
| from json -o
|
||||
| where name == "GorbyPuff"
|
||||
| get rusty_luck
|
||||
| get rusty_luck.0
|
||||
"#
|
||||
));
|
||||
|
||||
@ -90,7 +90,7 @@ fn table_to_json_text() {
|
||||
| select name
|
||||
| to json
|
||||
| from json
|
||||
| nth 0
|
||||
| get 0
|
||||
| get name
|
||||
"#
|
||||
));
|
||||
|
@ -7,7 +7,7 @@ fn from_ods_file_to_table() {
|
||||
r#"
|
||||
open sample_data.ods
|
||||
| get SalesOrders
|
||||
| nth 4
|
||||
| get 4
|
||||
| get Column2
|
||||
"#
|
||||
));
|
||||
|
@ -20,7 +20,7 @@ fn from_ssv_text_to_table() {
|
||||
r#"
|
||||
open oc_get_svc.txt
|
||||
| from ssv
|
||||
| nth 0
|
||||
| get 0
|
||||
| get IP
|
||||
"#
|
||||
));
|
||||
@ -47,7 +47,7 @@ fn from_ssv_text_to_table_with_separator_specified() {
|
||||
r#"
|
||||
open oc_get_svc.txt
|
||||
| from ssv --minimum-spaces 3
|
||||
| nth 0
|
||||
| get 0
|
||||
| get IP
|
||||
"#
|
||||
));
|
||||
|
@ -7,7 +7,7 @@ fn from_excel_file_to_table() {
|
||||
r#"
|
||||
open sample_data.xlsx
|
||||
| get SalesOrders
|
||||
| nth 4
|
||||
| get 4
|
||||
| get Column2
|
||||
"#
|
||||
));
|
||||
|
Reference in New Issue
Block a user