T
Task6mo ago
brunoqc

sources with wildcards, can I run the command only for the modified files?

With the following code, every time a plantuml file changes, all plantuml is run for every *.plantuml files I have. Is there a way to only run it for the files that actually changed?
tasks:
build:
desc: Builds the svg
watch: true
sources:
- '*.plantuml'
cmds:
- for: sources
cmd: plantuml {{ .ITEM }} -tsvg
tasks:
build:
desc: Builds the svg
watch: true
sources:
- '*.plantuml'
cmds:
- for: sources
cmd: plantuml {{ .ITEM }} -tsvg
2 Replies
pd93
pd936mo ago
This isn't possible at the moment, but I think this could be really useful if you wanted to open an issue on GitHub
brunoqc
brunoqcOP6mo ago
GitHub
sources with wildcards, be able to run the command only for the mod...
With the following code, every time a plantuml file changes, all plantuml is run for every *.plantuml files I have. It would be great to be able to only regenerate the files that actually changed. ...
Want results from more Discord servers?
Add your server