From fb571dbbae97e14d466ae17669f3e445831959ec Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 24 Jul 2021 19:02:58 +0100 Subject: [PATCH] config: wip config completion Signed-off-by: Ian Jackson --- src/config.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); } -- 2.30.2