From 858ee035533a5bcbe6e68ea7054b36083752b563 Mon Sep 17 00:00:00 2001 From: pommicket Date: Sun, 7 Sep 2025 23:08:56 -0400 Subject: Fix various bugs --- examples/simple.rs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'examples/simple.rs') diff --git a/examples/simple.rs b/examples/simple.rs index 161baac..a536f44 100644 --- a/examples/simple.rs +++ b/examples/simple.rs @@ -3,7 +3,19 @@ use std::process::ExitCode; fn try_main() -> Result<(), Box> { let conf = Configuration::load_path("examples/conf.pom")?; - println!("{conf}"); + println!("tab width is {}", conf.get_int_or_default("tab-size", 8)?); + println!( + "indenting with {}", + if conf.get_bool_or_default("indent-using-spaces", false)? { + "spaces" + } else { + "tabs" + } + ); + println!( + "edit-over-ssh plug-in path: {:?}", + conf.get("plug-in.edit-over-ssh.path") + ); Ok(()) } -- cgit v1.2.3