crate-ci / cargo-release

Cargo subcommand `release`: everything about releasing a rust crate.
Apache License 2.0
1.32k stars 110 forks source link

Allow replacements to apply to multiple files #104

Open jonas-schievink opened 5 years ago

jonas-schievink commented 5 years ago

It would be convenient to have a single pre-release-replacements section apply to a number of files in the workspace (eg. for multi-crate repositories). In addition to a file key, a files key could be accepted that is interpreted as a glob (if it's a string) or a list of globs (if it's a toml array).

epage commented 5 years ago

My preferred approach for globs is always gitignore syntax. This can be easily applied with globwalk.

If files wasn't a key, we could accept either a String or a Vec<String> to allow negations.