Although KCL is unquestionably a more powerful language, and maps more closely to my mental model of how host/environment/application configuration is defined, the fact that it doesn't work on ARM (issue 982]) makes it a non-starter. It's also quite slow (owing to how it compiles a program to evaluate the code) and cumbersome to distribute. Fortunately, `tmpl` doesn't care how the values it uses were computed, so we freely change configuration languages, so long as whatever we use generates JSON/YAML. CUE is probably a lot more popular than KCL, and is quite a bit simpler. It's more restrictive (values cannot be overridden once defined), but still expressive enough for what I am trying to do (so far).
27 lines
361 B
INI
27 lines
361 B
INI
root = true
|
|
|
|
[*]
|
|
charset = utf-8
|
|
end_of_line = lf
|
|
insert_final_newline = true
|
|
trim_trailing_whitespace = true
|
|
|
|
[**.cue]
|
|
max_line_length = 79
|
|
indent_style = tab
|
|
indent_size = 4
|
|
|
|
[**.k]
|
|
max_line_length = 79
|
|
indent_style = space
|
|
indent_size = 4
|
|
|
|
[**.sh]
|
|
max_line_length = 79
|
|
indent_style = space
|
|
indent_size = 4
|
|
|
|
[Containerfile]
|
|
indent_style = tab
|
|
indent_size = 4
|