-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unix-friendly output for 'ipfs dht' commands #2494
Comments
Heres what I would like to see as output for the various subcommands of
And for each of those, a verbose flag that prints the dht debugging events as they come in, making sure there arent any missed event types. |
What format would you like to see for a
|
peer IDs are just the Qm... hash |
One more: how about |
ehm... i guess it should take input from a file or standard in, and print out the peer IDs of peers that it stored a record with |
I've tackled most of these with #2560, but two trickier pieces remain: verbose output to stderrSince all output comes from the daemon over a single channel, we'll need to wrap its output in a struct or similar so it can be multiplexed to (stdout, stderr) on the receiving end. flag to list all records on
|
Work Items
ipfs dht findprovs
: lists the full peerIDs of providers, one per line (unix-friendly output for 'ipfs dht' commands #2560)ipfs dht findpeer
: lists multiaddrs discovered for the given peer, one per line (unix-friendly output for 'ipfs dht' commands #2560)ipfs dht get
: outputs the single best value selected for that key (unix-friendly output for 'ipfs dht' commands #2560)ipfs dht query
: lists of closest peer IDs, one per line (unix-friendly output for 'ipfs dht' commands #2560)ipfs dht put
: lists the peer IDs of the peers that it stored a record with (unix-friendly output for 'ipfs dht' commands #2560)Summary
Today:
Imagined output:
Important properties:
This makes the commands much friendlier to unix scripts -- IDs can be grabbed and fed into e.g.
ipfs dht findpeer
more or less directly! We could still retain a-s|--simple
option that gives short PeerIDs for existing compatibility, and keep-v|--verbose
for detailed human output.cc @whyrusleeping
The text was updated successfully, but these errors were encountered: