net-diag -> diag net
Brian Tiger Chow committed
Nov 7, 2014 at 19:23 UTC
7046ff0e57bb040e1b30b7e806ad9e3de2e8e2ef
2 files changed
+8
-2
core/commands2/diag.go
+7
-1
@@ -28,9 +28,15 @@ type DiagnosticOutput struct {
28
}
29
30
var diagCmd = &cmds.Command{
31
+ Subcommands: map[string]*cmds.Command{
32
+ "net": diagNetCmd,
33
+ },
34
+}
35
+
36
+var diagNetCmd = &cmds.Command{
37
// TODO UsageLine: "net-diag",
38
// TODO Short: "Generate a diagnostics report",
33
- Help: `ipfs net-diag - Generate a diagnostics report.
39
+ Help: `ipfs diag net - Generate a diagnostics report.
40
41
Sends out a message to each node in the network recursively
42
requesting a listing of data about them including number of
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
- "net-diag": diagCmd,
65
+ "diag": diagCmd,
66
"pin": pinCmd,
67
"version": versionCmd,
68
"config": configCmd,