mirror of
https://github.com/nushell/nushell
synced 2025-01-21 01:24:33 +00:00
c87fa14fc8
Result of running: find src -name *.rs -exec sed -i 's/crate /pub(crate) /g' {} \;
16 lines
454 B
Rust
16 lines
454 B
Rust
use crate::prelude::*;
|
|
use crate::{EntriesListView, GenericView, TreeView};
|
|
use futures::stream::{self, StreamExt};
|
|
use std::sync::{Arc, Mutex};
|
|
|
|
pub(crate) fn format(input: Vec<Value>, host: &mut dyn Host) {
|
|
let last = input.len() - 1;
|
|
for (i, item) in input.iter().enumerate() {
|
|
let view = GenericView::new(item);
|
|
crate::format::print_view(&view, &mut *host);
|
|
|
|
if last != i {
|
|
println!("");
|
|
}
|
|
}
|
|
}
|