mirror of
https://github.com/wader/fq.git
synced 2024-12-28 16:13:11 +03:00
a7a101ca67
Also add authors to avro and macho decoders Generated with: for i in $(go run . -r -n '_registry | [([([.files[][].name | split(".")[0]] | unique[]), (.formats[].name)] | count[] | select(.[1] == 2)[0]), (.formats[] | select(.decode_in_arg).name)] | unique[]'); do DIR=$(dirname $(find format -name $i.go)); echo "$ fq -h $i" > "$DIR/testdata/help_$i.fqtest" ; done
21 lines
441 B
Plaintext
21 lines
441 B
Plaintext
$ fq -h bitcoin_block
|
|
bitcoin_block: Bitcoin block decoder
|
|
|
|
Options
|
|
=======
|
|
|
|
has_header=false Has blkdat header
|
|
|
|
Decode examples
|
|
===============
|
|
|
|
# Decode file as bitcoin_block
|
|
$ fq -d bitcoin_block . file
|
|
# Decode value as bitcoin_block
|
|
... | bitcoin_block
|
|
# Decode file using bitcoin_block options
|
|
$ fq -d bitcoin_block -o has_header=false . file
|
|
# Decode value as bitcoin_block
|
|
... | bitcoin_block({has_header:false})
|
|
|