From d4cd3f95781870ab11fabdc5d8f0f028a47eebbe Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Thu, 17 Feb 2022 14:15:17 -0600 Subject: [PATCH] allow `dfr open` to open `tsv` files (#4516) --- crates/nu-command/src/dataframe/eager/open.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nu-command/src/dataframe/eager/open.rs b/crates/nu-command/src/dataframe/eager/open.rs index e213f84490..189654cee0 100644 --- a/crates/nu-command/src/dataframe/eager/open.rs +++ b/crates/nu-command/src/dataframe/eager/open.rs @@ -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, )), },