mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 02:55:07 +02:00
add "-0" as short for --headerless in "from" commands (#3042)
* replace --headerless flags with --noheaders / -n * Update from_csv.rs Co-authored-by: Jonathan Turner <jonathandturner@users.noreply.github.com>
This commit is contained in:
@ -64,7 +64,7 @@ fn table_to_csv_text_skipping_headers_after_conversion() {
|
||||
| str trim
|
||||
| split column "," a b c d origin
|
||||
| last 1
|
||||
| to csv --headerless
|
||||
| to csv --noheaders
|
||||
"#
|
||||
));
|
||||
|
||||
@ -198,7 +198,7 @@ fn from_csv_text_skipping_headers_to_table() {
|
||||
cwd: dirs.test(), pipeline(
|
||||
r#"
|
||||
open los_tres_amigos.txt
|
||||
| from csv --headerless
|
||||
| from csv --noheaders
|
||||
| get Column3
|
||||
| count
|
||||
"#
|
||||
|
@ -72,7 +72,7 @@ fn from_ssv_text_treating_first_line_as_data_with_flag() {
|
||||
cwd: dirs.test(), pipeline(
|
||||
r#"
|
||||
open oc_get_svc.txt
|
||||
| from ssv --headerless -a
|
||||
| from ssv --noheaders -a
|
||||
| first
|
||||
| get Column1
|
||||
"#
|
||||
@ -82,7 +82,7 @@ fn from_ssv_text_treating_first_line_as_data_with_flag() {
|
||||
cwd: dirs.test(), pipeline(
|
||||
r#"
|
||||
open oc_get_svc.txt
|
||||
| from ssv --headerless
|
||||
| from ssv --noheaders
|
||||
| first
|
||||
| get Column1
|
||||
|
||||
|
@ -70,7 +70,7 @@ fn table_to_tsv_text_skipping_headers_after_conversion() {
|
||||
| lines
|
||||
| split column "\t" a b c d origin
|
||||
| last 1
|
||||
| to tsv --headerless
|
||||
| to tsv --noheaders
|
||||
"#
|
||||
));
|
||||
|
||||
@ -121,7 +121,7 @@ fn from_tsv_text_skipping_headers_to_table() {
|
||||
cwd: dirs.test(), pipeline(
|
||||
r#"
|
||||
open los_tres_amigos.txt
|
||||
| from tsv --headerless
|
||||
| from tsv --noheaders
|
||||
| get Column3
|
||||
| count
|
||||
"#
|
||||
|
Reference in New Issue
Block a user