mirror of
https://github.com/nushell/nushell.git
synced 2025-02-15 01:52:07 +01:00
36 lines
1.3 KiB
Rust
36 lines
1.3 KiB
Rust
|
use nu_protocol::{row, Value};
|
||
|
use nu_test_support::value::{date, int, string};
|
||
|
|
||
|
pub mod ls {
|
||
|
use super::*;
|
||
|
|
||
|
pub fn file_listing() -> Vec<Value> {
|
||
|
vec![
|
||
|
row! {
|
||
|
"name".to_string() => string("Andrés.txt"),
|
||
|
"type".to_string() => string("File"),
|
||
|
"chickens".to_string() => int(10),
|
||
|
"modified".to_string() => date("2019-07-23")
|
||
|
},
|
||
|
row! {
|
||
|
"name".to_string() => string("Jonathan"),
|
||
|
"type".to_string() => string("Dir"),
|
||
|
"chickens".to_string() => int(5),
|
||
|
"modified".to_string() => date("2019-07-23")
|
||
|
},
|
||
|
row! {
|
||
|
"name".to_string() => string("Andrés.txt"),
|
||
|
"type".to_string() => string("File"),
|
||
|
"chickens".to_string() => int(20),
|
||
|
"modified".to_string() => date("2019-09-24")
|
||
|
},
|
||
|
row! {
|
||
|
"name".to_string() => string("Yehuda"),
|
||
|
"type".to_string() => string("Dir"),
|
||
|
"chickens".to_string() => int(4),
|
||
|
"modified".to_string() => date("2019-09-24")
|
||
|
},
|
||
|
]
|
||
|
}
|
||
|
}
|