diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/formatters/installers/hclfmt.bash | 3 | ||||
| -rw-r--r-- | test/formatters/samplecode/hclfmt/in.hcl | 9 | ||||
| -rw-r--r-- | test/formatters/samplecode/hclfmt/out.hcl | 9 |
3 files changed, 21 insertions, 0 deletions
diff --git a/test/formatters/installers/hclfmt.bash b/test/formatters/installers/hclfmt.bash new file mode 100644 index 0000000..f2dd51b --- /dev/null +++ b/test/formatters/installers/hclfmt.bash @@ -0,0 +1,3 @@ +apt-get install -y golang-go +go install github.com/hashicorp/hcl/v2/cmd/hclfmt@latest +cp -L "$HOME/go/bin/hclfmt" /usr/local/bin/ diff --git a/test/formatters/samplecode/hclfmt/in.hcl b/test/formatters/samplecode/hclfmt/in.hcl new file mode 100644 index 0000000..2b77020 --- /dev/null +++ b/test/formatters/samplecode/hclfmt/in.hcl @@ -0,0 +1,9 @@ +block { + whatever = 1 + format = "iam in" +} + +vars = { +equals = "needs" + aligned = "properly" +} diff --git a/test/formatters/samplecode/hclfmt/out.hcl b/test/formatters/samplecode/hclfmt/out.hcl new file mode 100644 index 0000000..2e0be84 --- /dev/null +++ b/test/formatters/samplecode/hclfmt/out.hcl @@ -0,0 +1,9 @@ +block { + whatever = 1 + format = "iam in" +} + +vars = { + equals = "needs" + aligned = "properly" +} |
