Skip to content

Cargo subcommand to check that all target files have a fixed prefix.

License

Notifications You must be signed in to change notification settings

tdyas/cargo-ensure-prefix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cargo-ensure-prefix

A cargo subcommand to check that all target files have a fixed prefix. This may be useful for licence headers, ensuring particular clippy lints are en/disabled, or maybe some other things too.

crates.io Documentation Build Status

Usage

cargo-ensure-prefix 

USAGE:
    cargo-ensure-prefix [FLAGS] [OPTIONS] --manifest-path <manifest-path> --prefix-path <prefix-path>

FLAGS:
        --all        
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
        --manifest-path <manifest-path>    
    -p, --package <package>...             
        --prefix-path <prefix-path>

Wildcard matching

Any byte will be accepted where a character \x1A is present in the prefix file. e.g. you could match any set of 4-digit years with a prefix file with contents: Copyright \x1A\x1A\x1A\x1A. Note that this is byte-wise matching, not character-wise matching.

About

Cargo subcommand to check that all target files have a fixed prefix.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%