From 48d65c6d9538a3053d14c0e5f6f7af84a3c22568 Mon Sep 17 00:00:00 2001 From: Brian Tiger Chow Date: Fri, 7 Nov 2014 18:32:53 -0800 Subject: [PATCH] docs(net-diag) help + name @jbenet @whyrusleeping Docs read net-diag. It seems the command was previously registered as diag. Which do you prefer? --- core/commands2/diag.go | 8 ++++++++ core/commands2/root.go | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/core/commands2/diag.go b/core/commands2/diag.go index b63486979..ec18476a9 100644 --- a/core/commands2/diag.go +++ b/core/commands2/diag.go @@ -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 diff --git a/core/commands2/root.go b/core/commands2/root.go index fed8c3f43..9417b9b7a 100644 --- a/core/commands2/root.go +++ b/core/commands2/root.go @@ -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,