sakurs_cli/output/
mod.rs

1//! Output formatting module
2
3use anyhow::Result;
4
5/// Trait for output formatters
6pub trait OutputFormatter: Send + Sync {
7    /// Format and output a single sentence
8    fn format_sentence(&mut self, sentence: &str, offset: usize) -> Result<()>;
9
10    /// Finalize output (e.g., close JSON array)
11    fn finish(&mut self) -> Result<()>;
12}
13
14pub mod json;
15pub mod markdown;
16pub mod text;
17
18pub use json::JsonFormatter;
19pub use markdown::MarkdownFormatter;
20pub use text::TextFormatter;