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:
10
testdata/cmds_vars/Taskfile.yml
vendored
Normal file
10
testdata/cmds_vars/Taskfile.yml
vendored
Normal 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
1
testdata/cmds_vars/source.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Hello, World!
|
Reference in New Issue
Block a user