feat(templater): add absPath template function (#2788)

Signed-off-by: Mateen Anjum <mateenali66@gmail.com>
Co-authored-by: Valentin Maerten <maerten.valentin@gmail.com>
This commit is contained in:
Mateen Anjum
2026-04-20 15:50:03 -04:00
committed by GitHub
parent 6e37e3d7a7
commit 1b06da16f6
4 changed files with 29 additions and 0 deletions

View File

@@ -617,6 +617,7 @@ tasks:
- echo "{{.WIN_PATH | fromSlash}}" # Convert to OS-specific slashes
- echo "{{joinPath .OUTPUT_DIR .BINARY_NAME}}" # Join path elements
- echo "Relative {{relPath .ROOT_DIR .TASKFILE_DIR}}" # Get relative path
- echo '{{absPath "../sibling"}}' # Resolve to an absolute path
```
### Data Structure Functions