ntfy/docs/sprig/os.md
2025-07-07 22:23:32 -06:00

458 B

OS Functions

WARNING: These functions can lead to information leakage if not used appropriately.

WARNING: Some notable implementations of Sprig (such as Kubernetes Helm) do not provide these functions for security reasons.

env

The env function reads an environment variable:

env "HOME"

expandenv

To substitute environment variables in a string, use expandenv:

expandenv "Your path is set to $PATH"