Skip to main content

Crate ecformat

Crate ecformat 

Source

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 status command

Macros§

editorconfig_version
Supported version of the EditorConfig specification, which you can use for example with semver::Version like this:

Functions§

check
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
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.
fix
Execute the fix command.
status
Execute the status command. The error in the Result is a errors::NoEditorConfigFound if no EditorConfig for the given targets can be found.