Skip to content

fukubaka0825/tffmtmd

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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