Skip to content

Commit 8f7348d

Browse files
[examples] Add workspace identifier example.
1 parent 0f3c976 commit 8f7348d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/templates.z-run

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,24 @@
6565

6666
<<~~.. templates / fingerprint / template / compile-time
6767
#! {{}}
68+
template-compile-time (WI): {{ .ZRUN_WORKSPACE_IDENTIFIER }}
6869
template-compile-time (LI): {{ .ZRUN_LIBRARY_IDENTIFIER }}
6970
template-compile-time (LF): {{ .ZRUN_LIBRARY_FINGERPRINT }}
7071
!!
7172

7273
<< templates / fingerprint / template / execute-time
7374
#! {{}}
75+
template-execute-time (WI): {{ .ZRUN_WORKSPACE_IDENTIFIER }}
7476
template-execute-time (LI): {{ .ZRUN_LIBRARY_IDENTIFIER }}
7577
template-execute-time (LF): {{ .ZRUN_LIBRARY_FINGERPRINT }}
7678
!!
7779

7880
<<~~.. templates / fingerprint / script / compile-time
79-
printf -- 'script-compile-time: %s %s %s\n' "${ZRUN_LIBRARY_IDENTIFIER}" "${ZRUN_LIBRARY_FINGERPRINT}" "$( exec -- date -Iseconds )"
81+
printf -- 'script-compile-time: %s %s %s %s\n' "${ZRUN_WORKSPACE_IDENTIFIER}" "${ZRUN_LIBRARY_IDENTIFIER}" "${ZRUN_LIBRARY_FINGERPRINT}" "$( exec -- date -Iseconds )"
8082
!!
8183

8284
<< templates / fingerprint / script / execute-time
83-
printf -- 'script-execute-time: %s %s %s\n' "${ZRUN_LIBRARY_IDENTIFIER}" "${ZRUN_LIBRARY_FINGERPRINT}" "$( exec -- date -Iseconds )"
85+
printf -- 'script-execute-time: %s %s %s %s\n' "${ZRUN_WORKSPACE_IDENTIFIER}" "${ZRUN_LIBRARY_IDENTIFIER}" "${ZRUN_LIBRARY_FINGERPRINT}" "$( exec -- date -Iseconds )"
8486
!!
8587

8688
<<~~.. templates / fingerprint / all / compile-time

0 commit comments

Comments
 (0)