1
0
mirror of https://github.com/go-task/task.git synced 2025-08-10 22:42:19 +02:00

feat: make CHECKSUM and TIMESTAMP vars available in cmds commands (#1872)

This commit is contained in:
Niklas Rousset
2024-12-31 16:04:42 +01:00
committed by GitHub
parent dc2eceb634
commit c1e14c461b
5 changed files with 62 additions and 16 deletions

10
testdata/cmds_vars/Taskfile.yml vendored Normal file
View File

@@ -0,0 +1,10 @@
version: '3'
tasks:
build:
sources:
- ./source.txt
cmds:
- echo "{{.CHECKSUM}}"
- echo "{{.TIMESTAMP.Unix}}"
- echo "{{.TIMESTAMP}}"

1
testdata/cmds_vars/source.txt vendored Normal file
View File

@@ -0,0 +1 @@
Hello, World!