...

Text file src/github.com/go-task/slim-sprig/v3/docs/os.md

Documentation: github.com/go-task/slim-sprig/v3/docs

     1# OS Functions
     2
     3_WARNING:_ These functions can lead to information leakage if not used
     4appropriately.
     5
     6_WARNING:_ Some notable implementations of Sprig (such as
     7[Kubernetes Helm](http://helm.sh) _do not provide these functions for security
     8reasons_.
     9
    10## env
    11
    12The `env` function reads an environment variable:
    13
    14```
    15env "HOME"
    16```
    17
    18## expandenv
    19
    20To substitute environment variables in a string, use `expandenv`:
    21
    22```
    23expandenv "Your path is set to $PATH"
    24```

View as plain text