mirror of
https://github.com/nushell/nushell
synced 2024-12-27 05:23:11 +00:00
allow dfr open
to open tsv
files (#4516)
This commit is contained in:
parent
9415352447
commit
d4cd3f9578
1 changed files with 2 additions and 2 deletions
|
@ -89,11 +89,11 @@ fn command(
|
|||
|
||||
match file.item.extension() {
|
||||
Some(e) => match e.to_str() {
|
||||
Some("csv") => from_csv(engine_state, stack, call),
|
||||
Some("csv") | Some("tsv") => from_csv(engine_state, stack, call),
|
||||
Some("parquet") => from_parquet(engine_state, stack, call),
|
||||
Some("json") => from_json(engine_state, stack, call),
|
||||
_ => Err(ShellError::FileNotFoundCustom(
|
||||
"Not a csv, parquet or json file".into(),
|
||||
"Not a csv, tsv, parquet or json file".into(),
|
||||
file.span,
|
||||
)),
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue