This tool converts HAProxy Data Plane API configuration written in HCL format to YAML format.
You can use this tool like following:
hcl-converter examlple.hcl example.yml
Full usage:
Usage:
hcl-converter <input-hcl-file> [output-yml-file]
Options:
-h, --help Show this help
On succesful conversion it will print out the following output
Input file: example.hcl
Output file: example.yaml
For commit messages and general style please follow the haproxy project's CONTRIBUTING guide and use that where applicable.
Please use golangci-lint run
from github.com/golangci/golangci-lint for linting code.