chiark / gitweb /
config: wip config completion
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 24 Jul 2021 18:02:58 +0000 (19:02 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 24 Jul 2021 18:02:58 +0000 (19:02 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/config.rs

index 65877dbefe792b27d0d1713b570630e25541b519..560233d63027afc51da9999df23cfc5fb91ba56f 100644 (file)
@@ -612,6 +612,13 @@ impl<'c> ResolveContext<'c> {
   }
 }
 
+impl InstanceConfig {
+  #[throws(AE)]
+  fn complete(&self) {
+    
+  }
+}
+
 #[throws(AE)]
 pub fn read(end: LinkEnd) -> Vec<InstanceConfig> {
   let opts = config::Opts::from_args();
@@ -658,6 +665,9 @@ pub fn read(end: LinkEnd) -> Vec<InstanceConfig> {
     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);
   }