Skip to content

little-bear-labs/yaml-env-replace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

env-replace

Replace values in YAML files with environment variables.

Usage

key:
    test:
        - path: ${HOME}

Running the given file through env replace using env-replace -i test.yaml should result in:

key:
    test:
        - path: /home/user
---

The result is written to stdout by default but an output file may be specified using env-replace -i <input file> -o <output file>.