use crate::errors::CoreResult;
pub mod collector;
pub mod bat;
pub mod glow;
pub mod html;
pub mod registry;
pub(crate) mod util;
pub use bat::BatViewer;
pub use collector::collect_proposal_artifacts;
pub use glow::GlowViewer;
pub use html::HtmlViewer;
pub use registry::ViewerRegistry;
pub trait ViewerBackend {
fn name(&self) -> &str;
fn description(&self) -> &str;
fn is_available(&self) -> bool;
fn availability_hint(&self) -> Option<String> {
None
}
fn open(&self, content: &str) -> CoreResult<()>;
}
#[cfg(test)]
mod viewer_tests;