hofstadter-io / hof

Framework that joins data models, schemas, code generation, and a task engine. Language and technology agnostic.
https://docs.hofstadter.io
Apache License 2.0
522 stars 37 forks source link

Add support for embedding user local files as strings into the CUE value during load #363

Closed verdverm closed 6 months ago

verdverm commented 6 months ago

Add support for embedding user files into a value

# flag
-U/--user-files  <cue-path>=<file-glob>  (with % to specify a slash to trim everything before)

# attribute
@userfiles(<file-glob>,[trim=<prefix>])

See: test/userfiles for examples