Hacker GitHub

← All repos

tmccombs/hcl2json

View on GitHub ↗ ★ 480 Go

Convert hcl2 to json

3 mentions on Hacker News by 2 people: 0 stories, 3 comments · first 2025-06-20 · latest 2026-03-31

Mentions per year 3 mentions · busiest year 2025 (2)
20082026
  1. I'm sure the UX would suck, but you could use hcl2json[0] and then transform that to YAML. [0]: https://github.com/tmccombs/hcl2json
  2. …wisdom didn't ship any rendering binary so some kind soul had to glue one to the official sdk https://github.com/tmccombs/hcl2json/blob/v0.6.7/go.mod#L8 I hear you about JSON might not be a goal, but I can tell you that Terraform accepts…
    comment by mdaniel · 2025-06-20 · in What would a Kubernetes 2.0 look like
  3. …you are secretly supporting my argument of "who can possibly decipher this insanity?!" because https://github.com/tmccombs/hcl2json believes that it is valid $ hcl2json <<FOO | jq -r '"has \(length) keys"' outer { example { foo = "bar" }…
    comment by mdaniel · 2025-06-20 · in What would a Kubernetes 2.0 look like