hclfmt

command module
v0.0.0-...-fb66c6d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

README

This project is a fork from https://github.com/fatih/hclfmt

hclfmt

hclfmt is a command to format and prettify HCL files. It's similar to the popular gofmt command. Hook it with your favourite editor or use it from the command line.

Install

If you have Go installed just do:

go install github.com/magodo/hclfmt@master

Editor integration

Usage

The usage is similar to gofmt. If you pass a file it prints the formatted output to std output:

$ hclfmt config.hcl

You can pass the -w flag to directly overwrite your file:

$ hclfmt -w config.hcl

If no arguments are passed, it excepts the input from standard input.

License

The BSD 3-Clause License - see LICENSE for more details

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL