Expand description
Structs§
- Format
Args - Format
Config - Pre-built native configs for all formatters.
- Format
Diagnostic - A formatting diagnostic: a file that is not properly formatted.
- Format
Result
Functions§
- check_
format - Check formatting of files, returning diagnostics for unformatted files.
- fix_
format - Fix formatting of files in place.
- format_
args - Construct the bpaf parser for
FormatArgs. - format_
content - Format a single file’s content. Returns
Ok(Some(formatted))if the content changed,Ok(None)if already formatted, orErron parse failure. - run
- Run the format command: format files in place, or check with
--check.