From: Ian Jackson Date: Sat, 14 May 2022 13:57:57 +0000 (+0100) Subject: otterlib: Pass opts to preview() X-Git-Tag: otter-1.1.0~191 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=25d3276aef1e86f439eac8af71a408d3667d6048;p=otter.git otterlib: Pass opts to preview() This is going to want the nwtemplates directory. Signed-off-by: Ian Jackson --- diff --git a/src/bin/otterlib.rs b/src/bin/otterlib.rs index 54167c10..51820650 100644 --- a/src/bin/otterlib.rs +++ b/src/bin/otterlib.rs @@ -67,7 +67,7 @@ pub type ItemForOutput = ItemEnquiryData; pub const VIS: ShowUnocculted = ShowUnocculted::new_visible(); #[throws(AE)] -fn preview(items: Vec) { +fn preview(opts: &Opts, items: Vec) { const BORDER: f64 = 1.; struct Prep { @@ -256,7 +256,7 @@ fn main() { println!("{}", item); } OutputKind::Preview => { - preview(items)? + preview(&opts, items)? } } }