Open cbrit opened 1 year ago
I think you should call it by yourself, e.g. by using/providing process_config()
in your Configurable
impl, e.g. something like
process_config(&self, config: StewardConfig) -> ... {
match &self.cmd {
...:Start(cmd) => cmd.override_config(config),
_ => Ok(config),
}
}
Rust: 1.67 Abscissa: 0.6.0
I have a bool config field
config.simulate.enabled
that I'd like to override with the start command flag--simulate
. My override looks like this:The config value is not being updated even though the flag is set. I've tried logging inside of
override_config()
to see if it is entered at all in case the value is is overwritten somewhere else, and it seems that the method is never actually called.If it were working, both would be
true