brunoqc
brunoqc
TTask
Created by brunoqc on 6/7/2024 in #help
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
3 replies