Posted on :: Tags: , ,

🐇 Is there a way to implement Default for CLI structs?

🐢 There is a way if we start from the config, not files. The default configuration is a TOML document. We can make it a XvcConfiguration struct and load and store it with confy.

🐇 We have a cascading set of configurations but maybe we can start from the struct and serialize, deserialize it on demand.

🐲 I don’t think we need to update xvc-config at the moment. It’s working and we don’t need to alter its workings in the near future.

🐢 I agree. We can use https://docs.rs/config/ when we need to update and have enough time to work on this.