From 7046ff0e57bb040e1b30b7e806ad9e3de2e8e2ef Mon Sep 17 00:00:00 2001 From: Brian Tiger Chow Date: Fri, 7 Nov 2014 19:23:46 -0800 Subject: [PATCH] net-diag -> diag net --- core/commands2/diag.go | 8 +++++++- core/commands2/root.go | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/core/commands2/diag.go b/core/commands2/diag.go index ec18476a9..e5023778d 100644 --- a/core/commands2/diag.go +++ b/core/commands2/diag.go @@ -28,9 +28,15 @@ type DiagnosticOutput struct { } var diagCmd = &cmds.Command{ + Subcommands: map[string]*cmds.Command{ + "net": diagNetCmd, + }, +} + +var diagNetCmd = &cmds.Command{ // TODO UsageLine: "net-diag", // TODO Short: "Generate a diagnostics report", - Help: `ipfs net-diag - Generate a diagnostics report. + Help: `ipfs diag net - 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 diff --git a/core/commands2/root.go b/core/commands2/root.go index 9cc6a228f..8a8933972 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, - "net-diag": diagCmd, + "diag": diagCmd, "pin": pinCmd, "version": versionCmd, "config": configCmd,