Execute the check command.
The error in the Result is a errors::CheckErrorList
if the check found violations against your EditorConfig.
Use a downcast method to check if it is the case and access the errors list.
Execute one of the CLI lib commands.
In case of LibCommands::Status the status info is printed to stdout,
depending on the verbosity.
If you want to use status_types::StatusInfo directly, call status.
(The other CLI commands are not supported by the lib crate.)
See also check, fix and status.