@cryptotaxi247 / kubo / commits / 48d65c6d9

docs(net-diag) help + name

@jbenet @whyrusleeping Docs read net-diag. It seems the command was previously registered as diag. Which do you prefer?

Brian Tiger Chow committed Nov 7, 2014 at 18:32 UTC 48d65c6d9538a3053d14c0e5f6f7af84a3c22568
2 files changed +9 -1
core/commands2/diag.go
+8
@@ -28,6 +28,14 @@ type DiagnosticOutput struct {
28 }
29
30 var diagCmd = &cmds.Command{
31 + // TODO UsageLine: "net-diag",
32 + // TODO Short: "Generate a diagnostics report",
33 + Help: `ipfs net-diag - Generate a diagnostics report.
34 +
35 + Sends out a message to each node in the network recursively
36 + requesting a listing of data about them including number of
37 + connected peers and latencies between them.
38 +`,
39 Run: func(res cmds.Response, req cmds.Request) {
40 n := req.Context().Node
41
core/commands2/root.go
+1 -1
@@ -62,7 +62,7 @@ var rootSubcommands = map[string]*cmds.Command{
62 "name": nameCmd,
63 "add": addCmd,
64 "log": logCmd,
65 - "diag": diagCmd,
65 + "net-diag": diagCmd,
66 "pin": pinCmd,
67 "unpin": unpinCmd,
68 "version": versionCmd,