Skip to content

tffmtmd formats HCL source code block in Markdown. detects fenced code & formats code.

License

Notifications You must be signed in to change notification settings

fukubaka0825/tffmtmd

Repository files navigation

tffmtmd

GoDoc codecovCircleCI GolangCI

tffmtmd formats HCL source code block in Markdown. detects fenced code & formats code.

Inspired by gofmtmd

Installation

$ go get github.com/fukubaka0825/tffmtmd/cmd/tffmtmd

Usage

# replace HCL code with formated code
$ tffmtmd testdata/testdata.md -r

# write result to file instead of stdout
$ tffmtmd testdata/testdata.md -w output.md

Help

-> % tffmtmd -h
Usage: tffmtmd [options...] filePath

tffmtmd is a command line tool to format HCL code in Markdown.

OPTIONS:
  --replace value, -r value  replace HCL code with formated code
  --write value, -w value    write result to file instead of stdout
  --help, -h              prints out help

About

tffmtmd formats HCL source code block in Markdown. detects fenced code & formats code.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages