Skip to content
tffmtmd formats HCL source code block in Markdown. detects fenced code & formats code.
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
cmd/tffmtmd
image
testdata
.gitignore
.goreleaser.yml
LICENCE
README.md
go.mod
go.sum
md_file.go
md_file_test.go

README.md

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
You can’t perform that action at this time.