From: Ian Jackson Date: Sat, 24 Jul 2021 18:02:58 +0000 (+0100) Subject: config: wip config completion X-Git-Tag: hippotat/1.0.0~461 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=fb571dbbae97e14d466ae17669f3e445831959ec;p=hippotat.git config: wip config completion Signed-off-by: Ian Jackson --- diff --git a/src/config.rs b/src/config.rs index 65877db..560233d 100644 --- a/src/config.rs +++ b/src/config.rs @@ -612,6 +612,13 @@ impl<'c> ResolveContext<'c> { } } +impl InstanceConfig { + #[throws(AE)] + fn complete(&self) { + + } +} + #[throws(AE)] pub fn read(end: LinkEnd) -> Vec { let opts = config::Opts::from_args(); @@ -658,6 +665,9 @@ pub fn read(end: LinkEnd) -> Vec { let ic = InstanceConfig::resolve_instance(&rctx) .with_context(|| format!(r#"resolve config for "{:?}""#, &link))?; + ic.complete() + .with_context(|| format!(r#"complete config for "{:?}""#, &link))?; + ics.push(ic); }