mirror of
https://github.com/nushell/nushell.git
synced 2024-12-23 07:30:13 +01:00
23 lines
503 B
Rust
23 lines
503 B
Rust
crate mod entries;
|
|
crate mod generic;
|
|
crate mod list;
|
|
crate mod table;
|
|
crate mod tree;
|
|
crate mod vtable;
|
|
|
|
use crate::prelude::*;
|
|
|
|
crate use entries::EntriesView;
|
|
crate use generic::GenericView;
|
|
crate use table::TableView;
|
|
crate use tree::TreeView;
|
|
crate use vtable::VTableView;
|
|
|
|
crate trait RenderView {
|
|
fn render_view(&self, host: &mut dyn Host) -> Result<(), ShellError>;
|
|
}
|
|
|
|
crate fn print_view(view: &impl RenderView, host: &mut dyn Host) -> Result<(), ShellError> {
|
|
view.render_view(host)
|
|
}
|