chiark
/
gitweb
/
~ian
/
hippotat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cbb7b6
)
config: wip config completion
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 24 Jul 2021 18:02:58 +0000
(19:02 +0100)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/src/config.rs
b/src/config.rs
index 65877dbefe792b27d0d1713b570630e25541b519..560233d63027afc51da9999df23cfc5fb91ba56f 100644
(file)
--- 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<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);
}