cmmorrow / build-magic

A general purpose build/install/deploy tool.
MIT License
9 stars 2 forks source link

Add config file validation to the CLI #117

Closed cmmorrow closed 2 years ago

cmmorrow commented 2 years ago

Is your feature request related to a problem? Please describe. When writing a new config file, it fails with a long and cryptic error message if it contains errors.

Describe the solution you'd like It would be useful to have a --validate switch that could be used to make sure a config file is valid without having try to execute it first.

Describe alternatives you've considered Validate is used at runtime against a json schema file, but the output isn't ideal. It also doesn't drill down to the specific problem. Adding specificity would be great, but would be a lot of work, when a simple pass/fail would suffice.