mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
from xlsx/ods: Add parameter --sheets (#3600)
* from xlsx: Add parameter --sheets * from ods: Add parameter --sheets
This commit is contained in:
@ -14,3 +14,17 @@ fn from_ods_file_to_table() {
|
||||
|
||||
assert_eq!(actual.out, "Gill");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn from_ods_file_to_table_select_sheet() {
|
||||
let actual = nu!(
|
||||
cwd: "tests/fixtures/formats", pipeline(
|
||||
r#"
|
||||
open sample_data.ods --raw
|
||||
| from ods -s ["SalesOrders"]
|
||||
| get
|
||||
"#
|
||||
));
|
||||
|
||||
assert_eq!(actual.out, "SalesOrders");
|
||||
}
|
||||
|
@ -14,3 +14,17 @@ fn from_excel_file_to_table() {
|
||||
|
||||
assert_eq!(actual.out, "Gill");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn from_excel_file_to_table_select_sheet() {
|
||||
let actual = nu!(
|
||||
cwd: "tests/fixtures/formats", pipeline(
|
||||
r#"
|
||||
open sample_data.xlsx --raw
|
||||
| from xlsx -s ["SalesOrders"]
|
||||
| get
|
||||
"#
|
||||
));
|
||||
|
||||
assert_eq!(actual.out, "SalesOrders");
|
||||
}
|
||||
|
Reference in New Issue
Block a user