Created
April 18, 2022 20:42
-
-
Save cari-lynn/1487a65850764679528ccec95aa0c404 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ load("@ytt:yaml", "yaml") | |
#@ load("@ytt:data", "data") | |
#@ def list_and_read(): | |
#@ files = data.list("/") | |
files: #@ files | |
boms: | |
#@ for/end file in files: | |
- bom_name: #@ file | |
bom_data: #@ data.read(file) | |
#@ end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ load("@ytt:data", "data") | |
--- | |
bom_data: #@ data.values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ load("files.lib.yml", "list_and_read") | |
#@data/values | |
--- | |
#! this doesn't work | |
files: #@ list_and_read() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment