Expand description
§clap-sort
A library to validate that clap subcommands are sorted alphabetically.
This crate provides functionality to parse Rust source files and check that clap subcommands defined in enums are sorted alphabetically by their CLI names.
Structs§
- Validation
Error - Error type for validation failures
Functions§
- validate_
enum_ sorted - Validate that an enum’s variants are sorted alphabetically by their CLI names
- validate_
file - Validate that all clap Subcommand enums in a source file are sorted
- validate_
file_ path - Validate a Rust source file at the given path