Cameronsplaze / AWS-ContainerManager

CDK Architecture to spin up containers when you connect, and back down afterwards automatically.
2 stars 0 forks source link

[Feature] Detect unused keys in config, and error #8

Open Cameronsplaze opened 1 month ago

Cameronsplaze commented 1 month ago

Is your feature request related to a problem? Please describe. If you typo a key in the config, it'll not detect that and use the default. It can be really frustrating debugging that.

Describe the solution you'd like Error if there's any unused keys in the config.

I think the best way to do this is to create a org_config and parsed_config. As you confirm options, move them to parsed_config and delete them from org_config. If there's ANYTHING in org_config when you're done, error.

Describe alternatives you've considered Unless there's some config-parser library I haven't found yet, I'm not sure there is any alternative...

Additional context