Skip to content

A simple utility to parse HashiCorp HCL files and return values

License

Notifications You must be signed in to change notification settings

eloraburns/hclq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hclq

A simple utility to parse HashiCorp HCL files and return values

Given:

# some.hcl
foo = "bar"
bar = {
  quux = "zounds"
}

You can extract simple values:

$ ./hclq some.hcl '{{.foo}}'
bar

Nested objects are wrapped in lists, because HCL:

$ ./hclq some.hcl '{{ (index .bar 0).quux }}'
zounds

Build

make

About

A simple utility to parse HashiCorp HCL files and return values

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published