Skip to content

Add a --validate option

Peter Hutterer requested to merge whot/hookiedookie:wip/validate into main

This allows us to run hookiedookie against a settings file and fail if that file isn't valid. Unfortunately the message we get from the parser is a ConfigError::Message(String) which isn't overly useful. So let's jut print it and bump it into a new io::Error and be done with it - perfect UX is not the goal here.

Fixes #12 (closed)


Note: a git-like hookiedookie validate would be nice too but this was the simplest way to implement it, so let's go with that?

Merge request reports

Loading