Skip to content

haproxytech/hcl-converter

Repository files navigation

HAProxy

HAProxy HCL to YAML converter

Contributors License

This tool converts HAProxy Data Plane API configuration written in HCL format to YAML format.

Usage example

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

Output

On succesful conversion it will print out the following output

Input file: example.hcl
Output file: example.yaml

Contributing

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.