2020-11-13 22:36:17 +01:00
|
|
|
# cq usage
|
|
|
|
|
|
|
|
```sh
|
|
|
|
cq < file.cbor
|
|
|
|
cq [attribute] < file.cbor
|
|
|
|
```
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
cq ".people.alice.age" < file.cbor
|
|
|
|
```
|
|
|
|
|
|
|
|
# json-to-cbor usage
|
|
|
|
|
|
|
|
```sh
|
|
|
|
json-to-cbor < file.json > file.cbor
|
|
|
|
```
|
|
|
|
|
2020-11-26 16:06:58 +01:00
|
|
|
# hs usage
|
|
|
|
|
|
|
|
`hs` stands for `hexstring`.
|
|
|
|
|
|
|
|
```sh
|
|
|
|
hs < file.cbor
|
|
|
|
```
|
|
|
|
|