mirror of
https://github.com/nushell/nushell.git
synced 2025-05-21 07:03:19 +00:00
This improves incremental build time when working on what was previously the root package. For example, previously all plugins would be rebuilt with a change to `src/commands/classified/external.rs`, but now only `nu-cli` will have to be rebuilt (and anything that depends on it).
19 lines
448 B
Rust
19 lines
448 B
Rust
pub(crate) mod entries;
|
|
pub(crate) mod generic;
|
|
pub(crate) mod list;
|
|
pub(crate) mod table;
|
|
|
|
use crate::prelude::*;
|
|
use nu_errors::ShellError;
|
|
|
|
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)
|
|
}
|