mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
add a vertical record view
This commit is contained in:
@ -16,6 +16,12 @@ impl ValueStream {
|
||||
)
|
||||
}
|
||||
|
||||
pub fn collect_string(self) -> String {
|
||||
self.map(|x: Value| x.collect_string())
|
||||
.collect::<Vec<String>>()
|
||||
.join("\n")
|
||||
}
|
||||
|
||||
pub fn from_stream(input: impl Iterator<Item = Value> + 'static) -> ValueStream {
|
||||
ValueStream(Rc::new(RefCell::new(input)))
|
||||
}
|
||||
|
Reference in New Issue
Block a user