Modules§
- cli
- Structs for the Command Line Interface commands and options, which are also necessary as parameters for using ecformat as library.
- errors
- Error types related to EditorConfig.
- status_
types - Module for the types of the usage status
that is returned by the
statuscommand
Macros§
- editorconfig_
version - Supported version of the EditorConfig specification,
which you can use for example with
semver::Versionlike this:
Functions§
- check
- Execute the check command.
The error in the Result is a
errors::CheckErrorListif the check found violations against your EditorConfig. Use a downcast method to check if it is the case and access the errors list. - execute
- Execute one of the CLI lib commands.
In case of
LibCommands::Statusthe status info is printed to stdout, depending on theverbosity. If you want to usestatus_types::StatusInfodirectly, callstatus. (The other CLI commands are not supported by the lib crate.) See alsocheck,fixandstatus. - fix
- Execute the fix command.
- status
- Execute the status command.
The error in the Result is a
errors::NoEditorConfigFoundif no EditorConfig for the given targets can be found.