Document env support in default templates

This commit is contained in:
Tim Byrne 2022-02-21 12:47:17 -06:00
parent 3c282999e8
commit 02677d576d
No known key found for this signature in database
GPG Key ID: 14DB4FC2465A4B12
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ When template processors run, they will be provided the following set of data.
| `yadm.os` | `YADM_OS` | Operating system | <code>uname&nbsp;&#8209;s</code> <sup>*</sup> | | `yadm.os` | `YADM_OS` | Operating system | <code>uname&nbsp;&#8209;s</code> <sup>*</sup> |
| `yadm.user` | `YADM_USER` | Current user | <code>id&nbsp;&#8209;u&nbsp;&#8209;n</code> | | `yadm.user` | `YADM_USER` | Current user | <code>id&nbsp;&#8209;u&nbsp;&#8209;n</code> |
| `yadm.source` | `YADM_SOURCE` | Template filename | (fully qualified path) | | `yadm.source` | `YADM_SOURCE` | Template filename | (fully qualified path) |
| `env.VAR` | | Env variables | Any VAR in the environment while yadm templates are processed |
<sub><sup>* <sub><sup>*
The OS for "Windows Subsystem for Linux" is reported as "WSL", even though uname identifies as "Linux". The OS for "Windows Subsystem for Linux" is reported as "WSL", even though uname identifies as "Linux".