Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
minamijoyo committed Jan 31, 2025
1 parent a890b6b commit 282019b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
- Support HCL2 (not HCL1)
- Available operations:
- attribute append/get/rm/set
- block append/get/list/mv/rm
- block append/get/list/mv/new/rm
- body get
- fmt

Expand Down Expand Up @@ -158,6 +158,7 @@ Available Commands:
get Get block
list List block
mv Move block (Rename block type and labels)
new Create a new block
rm Remove block
Flags:
Expand Down Expand Up @@ -227,6 +228,19 @@ resource "foo" "baz" {
}
```

```
$ cat tmp/block.hcl | hcledit block new resource foo qux
resource "foo" "bar" {
attr1 = "val1"
}
resource "foo" "baz" {
attr1 = "val2"
}
resource "foo" "qux" {
}
```

### body

```
Expand Down

0 comments on commit 282019b

Please sign in to comment.