mirror of
https://github.com/nushell/nushell.git
synced 2024-12-26 17:09:06 +01:00
19 lines
422 B
Rust
19 lines
422 B
Rust
pub(crate) mod entries;
|
|
pub(crate) mod generic;
|
|
pub(crate) mod list;
|
|
pub(crate) mod table;
|
|
|
|
use crate::prelude::*;
|
|
|
|
pub(crate) use entries::EntriesView;
|
|
|
|
pub(crate) use table::TableView;
|
|
|
|
pub(crate) trait RenderView {
|
|
fn render_view(&self, host: &mut dyn Host) -> Result<(), ShellError>;
|
|
}
|
|
|
|
pub(crate) fn print_view(view: &impl RenderView, host: &mut dyn Host) -> Result<(), ShellError> {
|
|
view.render_view(host)
|
|
}
|