Conversation
|
I might prefer something like So we don't need to add the special |
We can also assume the behavior of "rooster.previous" if the substitution array is empty? Since right now this also works: [tool.rooster]
...
substitution_files = { "**/*.md" = ["rooster.previous", "FOO", "BAR"], "README.md" = ["BAZ"] }I didn't add single file support because I feel that's covered by |
|
I do get |
|
Oh I see — sorry I don't know my own APIs here. Yeah, I think I'd replace I don't know if I really want that yet though, so maybe we should just add some functionality to |
|
I ended up going ahead and adding support to replacements to the existing This will work now: version_files = [
"README.md", # Existing functionality
{ target = "**/*.md" }, # Replaces all prev versions with new version on all matches
{ target = "**/*.md", replace = "FOO" } # Replaces all instances of FOO with new version on all matches
] |
7eacf63 to
90fcdb4
Compare
|
Note, I chose |
|
Sorry for the ping as you're very busy; thoughts here? 😄 |
In order to support astral-sh/uv#15196
This adds initial support to rooster for file substitutions.
Replace old version with new version in README.md using the special substitution string
rooster.previous.or
Replace FOO and BAR with the new version on all md files.