Skip to content

Commit b679d70

Browse files
committed
Added syntax highlighting for jq example.
1 parent 96c7914 commit b679d70

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/cli/cli-tips-tricks.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,11 @@ planet orders list | jq -rs '.[3] | "\(.id) \(.created_on) \(.name) \(.state)"'
301301

302302
* Use jq to show just orders that have a given item type, like just skysat.
303303

304-
planet orders list | jq -rs '.[] | "\(.id) \(.created_on) \(.state) \(.products[0].item_type)"' will show the item type
304+
```console
305+
planet orders list | jq -rs '.[] | "\(.id) \(.created_on) \(.state) \(.products[0].item_type)"'
306+
```
305307

306-
https://gist.github.com/ipbastola/2c955d8bf2e96f9b1077b15f995bdae3 has ideas for contains, but haven't got it right yet
308+
will show the item type https://gist.github.com/ipbastola/2c955d8bf2e96f9b1077b15f995bdae3 has ideas for contains, but haven't got it right yet
307309

308310
* use jq to get the id of the an order by it's name
309311

0 commit comments

Comments
 (0)