Skip to content

Instantly share code, notes, and snippets.

@kajogo777
kajogo777 / config.cue
Created March 22, 2023 22:42
PoC for applying AST transformations to CUE files, the transformations themselves are written in CUE
package main
patch: {
pattern: {
abc: string
a: int
}
result: {
abc: pattern.abc
id: "id-\(pattern.a*2)"