Skip to content

Instantly share code, notes, and snippets.

@cari-lynn
Created April 18, 2022 20:42
Show Gist options
  • Save cari-lynn/1487a65850764679528ccec95aa0c404 to your computer and use it in GitHub Desktop.
Save cari-lynn/1487a65850764679528ccec95aa0c404 to your computer and use it in GitHub Desktop.
#@ 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
#@ load("@ytt:data", "data")
---
bom_data: #@ data.values
#@ 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