File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -781,7 +781,10 @@ tasks:
781
781
782
782
If you prefer these check to be made by the modification timestamp of the files,
783
783
instead of its checksum (content), just set the `method` property to
784
- ` timestamp` .
784
+ `timestamp`. This can be done at two levels :
785
+
786
+ At the task level for a specific task :
787
+
785
788
786
789
` ` ` yaml
787
790
version: '3'
@@ -797,6 +800,24 @@ tasks:
797
800
method: timestamp
798
801
` ` `
799
802
803
+ At the root level of the Taskfile to apply it globally to all tasks :
804
+
805
+ ` ` ` yaml
806
+ version: '3'
807
+
808
+ method: timestamp # Will be the default for all tasks
809
+
810
+ tasks:
811
+ build:
812
+ cmds:
813
+ - go build .
814
+ sources:
815
+ - ./*.go
816
+ generates:
817
+ - app{{exeExt}}
818
+ ` ` `
819
+
820
+
800
821
In situations where you need more flexibility the `status` keyword can be used.
801
822
You can even combine the two. See the documentation for
802
823
[status](#using-programmatic-checks-to-indicate-a-task-is-up-to-date) for an
You can’t perform that action at this time.
0 commit comments