Skip to content

Commit

Permalink
Specify how to bypass [] error on zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
ryohkhn committed Aug 8, 2024
1 parent 53e47ac commit 79f8538
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ and is the same as this below, using osc-cli-like notation
```bash
oapi-cli DeleteTags --ResourceIds '["ID0", "ID1"]' --Tags '[{"Key": "k0", "Value": "v0"}, {"Key": "k1", "Value": "v1"}]'
```
On some shells (like zsh) using [] for arrays might not work. A workaround is to put singlequotes around the parameter
```bash
oapi-cli --color DeleteTags '--ResourceIds[]' "ID0" '--ResourceIds[]' "ID1" --Tags.0.Key k0 --Tags.0.Value v0 --Tags.1.Key k1 --Tags.1.Value v1
```

show debug information (HTTP info, and json send to the api)
```bash
Expand Down

0 comments on commit 79f8538

Please sign in to comment.