From 25d3276aef1e86f439eac8af71a408d3667d6048 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 14 May 2022 14:57:57 +0100 Subject: [PATCH] otterlib: Pass opts to preview() This is going to want the nwtemplates directory. Signed-off-by: Ian Jackson --- src/bin/otterlib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)? } } } -- 2.30.2