Closed micnncim closed 3 years ago
Added --comment|-c flag to hclecit create.
--comment|-c
hclecit create
$ go run ./cmd/hcledit/main.go create 'module.my-module.key' 'value' --comment '// Comment' ./cmd/hcledit/internal/command/fixture/file.tf $ git --no-pager diff diff --git a/cmd/hcledit/internal/command/fixture/file.tf b/cmd/hcledit/internal/command/fixture/file.tf index 2d98c5c..7efd30b 100644 --- a/cmd/hcledit/internal/command/fixture/file.tf +++ b/cmd/hcledit/internal/command/fixture/file.tf @@ -29,4 +29,6 @@ module "my-module" { "f", ] } + // Comment + key = "value" }
From: https://github.com/mercari/hcledit/issues/6
WHAT
Added
--comment|-c
flag tohclecit create
.WHY
From: https://github.com/mercari/hcledit/issues/6