mirror of
https://github.com/wader/fq.git
synced 2024-12-23 13:22:58 +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
378 B
Plaintext
21 lines
378 B
Plaintext
$ fq -h bencode
|
|
bencode: BitTorrent bencoding decoder
|
|
|
|
Decode examples
|
|
===============
|
|
|
|
# Decode file as bencode
|
|
$ fq -d bencode . file
|
|
# Decode value as bencode
|
|
... | bencode
|
|
|
|
Convert represented value to JSON
|
|
=================================
|
|
|
|
$ fq -d bencode torepr file.torrent
|
|
|
|
References
|
|
==========
|
|
- https://wiki.theory.org/BitTorrentSpecification#Bencoding
|
|
|