Crate clap_sort

Crate clap_sort 

Source
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§

ValidationError
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