From: Ian Jackson Date: Sat, 24 Jul 2021 12:52:36 +0000 (+0100) Subject: config X-Git-Tag: hippotat/1.0.0~481 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=730c612fde7148ed019f4617ad52e7bbd554ca1d;p=hippotat.git config Signed-off-by: Ian Jackson --- diff --git a/src/config.rs b/src/config.rs index 94c5e16..8308285 100644 --- a/src/config.rs +++ b/src/config.rs @@ -29,6 +29,7 @@ impl<'s> Option<&'s str> { } } +#[derive(Clone)] pub struct Secret(pub String); impl Parseable for Secret { #[throws(AE)] @@ -46,6 +47,7 @@ impl Debug for Secret { } #[derive(hippotat_macros::ResolveConfig)] +#[derive(Debug,Clone)] pub struct InstanceConfig { // Exceptional settings #[special(special_server, SKL::ServerName)] pub server: ServerName, @@ -522,4 +524,9 @@ pub fn read() { ], special_server_section: SN::special_server_section(), }; + + let ic = InstanceConfig::resolve_instance(&rctx) + .context("resolve config xxx for")?; + + eprintln!("{:?}", &ic); }