Closed Ichmed closed 1 year ago
Yeah you are completely right here. I moved other parts of the project e.g flake-ctl to serde_yaml but not yet in all components. There is potential to break the yaml by treating it "raw" and I agree moving to serde_yaml is the way to go in all parts of the code
We are complete here imho. Thanks much for the effort
Right now the config in both pilots is being parsed into a generic Yaml node that is evaluated on the fly. This may cause destructive actions to be performed before terminating the program due to a faulty config.
By parsing deserializing the config into a fixed struct the pilot can quit on startup if the config is invalid. This will also prevent errors due to typos and make the config more discoverable for new contributors.