Documentation
¶
Overview ¶
Terrafmt formats terraform blocks embedded in markdown documentation and Go test files.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package cli implements the terrafmt commands (fmt, diff, blocks).
|
Package cli implements the terrafmt commands (fmt, diff, blocks). |
|
lib
|
|
|
blocks
Package blocks finds and extracts terraform blocks embedded in go, markdown, and rst files.
|
Package blocks finds and extracts terraform blocks embedded in go, markdown, and rst files. |
|
common
Package common holds shared helpers, currently logger construction.
|
Package common holds shared helpers, currently logger construction. |
|
diff
Package diff produces linewise diffs between two strings.
|
Package diff produces linewise diffs between two strings. |
|
diff/diffmatchpatch
Package diffmatchpatch offers robust algorithms to perform the operations required for synchronising plain text.
|
Package diffmatchpatch offers robust algorithms to perform the operations required for synchronising plain text. |
|
fmtverbs
Package fmtverbs escapes Go format verbs (%s, %d, %[n]s, ...) in terraform blocks so they survive a round trip through the HCL formatter, and unescapes them afterwards.
|
Package fmtverbs escapes Go format verbs (%s, %d, %[n]s, ...) in terraform blocks so they survive a round trip through the HCL formatter, and unescapes them afterwards. |
|
format
Package format formats terraform blocks with the HCL formatter.
|
Package format formats terraform blocks with the HCL formatter. |
|
version
Package version exposes the terrafmt version and git commit, set at build time.
|
Package version exposes the terrafmt version and git commit, set at build time. |
Click to show internal directories.
Click to hide internal directories.




