ee147d9ee6
This is essentially a CLI wrapper around the hcldec package, accepting a decoding specification via a HCL-based language and using it to translate input HCL files into JSON values while performing basic structural and type validation of the input files.
24 lines
345 B
Plaintext
24 lines
345 B
Plaintext
object {
|
|
attr "name" {
|
|
type = string
|
|
required = true
|
|
}
|
|
default "greeting" {
|
|
attr {
|
|
name = "greeting"
|
|
type = string
|
|
}
|
|
literal {
|
|
value = "Hello"
|
|
}
|
|
}
|
|
block_list "friends" {
|
|
block_type = "friend"
|
|
attr {
|
|
name = "name"
|
|
type = string
|
|
required = true
|
|
}
|
|
}
|
|
}
|