mirror of
https://github.com/wader/fq.git
synced 2024-11-25 05:55:43 +03:00
87b2c6c10c
Markdown is used as is in online documentation and in cli the markdown decoder is used to decode and the some jq code massages it into something cli friendly. Was just too much of a mess to have doc in jq.
9 lines
231 B
Plaintext
9 lines
231 B
Plaintext
def _asn1_ber_torepr:
|
|
if .class == "universal" then
|
|
if .tag | . == "sequence" or . == "set" then
|
|
.constructed | map(_asn1_ber_torepr)
|
|
else .value | tovalue
|
|
end
|
|
else .constructed | map(_asn1_ber_torepr)
|
|
end;
|