mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-01 02:30:39 +08:00
docs(net-diag) help + name
@jbenet @whyrusleeping Docs read net-diag. It seems the command was previously registered as diag. Which do you prefer?
This commit is contained in:

committed by
Juan Batiz-Benet

parent
1c7ef8926d
commit
48d65c6d95
@ -28,6 +28,14 @@ type DiagnosticOutput struct {
|
||||
}
|
||||
|
||||
var diagCmd = &cmds.Command{
|
||||
// TODO UsageLine: "net-diag",
|
||||
// TODO Short: "Generate a diagnostics report",
|
||||
Help: `ipfs net-diag - Generate a diagnostics report.
|
||||
|
||||
Sends out a message to each node in the network recursively
|
||||
requesting a listing of data about them including number of
|
||||
connected peers and latencies between them.
|
||||
`,
|
||||
Run: func(res cmds.Response, req cmds.Request) {
|
||||
n := req.Context().Node
|
||||
|
||||
|
@ -62,7 +62,7 @@ var rootSubcommands = map[string]*cmds.Command{
|
||||
"name": nameCmd,
|
||||
"add": addCmd,
|
||||
"log": logCmd,
|
||||
"diag": diagCmd,
|
||||
"net-diag": diagCmd,
|
||||
"pin": pinCmd,
|
||||
"unpin": unpinCmd,
|
||||
"version": versionCmd,
|
||||
|
Reference in New Issue
Block a user