Fixed up comments for diag cmds

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
This commit is contained in:
Richard Littauer 2016-04-26 19:31:38 -04:00
parent 9e3b5c3dfe
commit 4b4c81a37d

View File

@ -13,7 +13,7 @@ import (
var ActiveReqsCmd = &cmds.Command{
Helptext: cmds.HelpText{
Tagline: "List commands run on this ipfs node",
Tagline: "List commands run on this ipfs node.",
ShortDescription: `
Lists running and recently run commands.
`,
@ -22,7 +22,7 @@ Lists running and recently run commands.
res.SetOutput(req.InvocContext().ReqLog.Report())
},
Options: []cmds.Option{
cmds.BoolOption("v", "verbose", "print more verbose output"),
cmds.BoolOption("v", "verbose", "Print more verbose output."),
},
Subcommands: map[string]*cmds.Command{
"clear": clearInactiveCmd,
@ -87,7 +87,7 @@ Lists running and recently run commands.
var clearInactiveCmd = &cmds.Command{
Helptext: cmds.HelpText{
Tagline: "Clear inactive requests from the log",
Tagline: "Clear inactive requests from the log.",
},
Run: func(req cmds.Request, res cmds.Response) {
req.InvocContext().ReqLog.ClearInactive()
@ -96,10 +96,10 @@ var clearInactiveCmd = &cmds.Command{
var setRequestClearCmd = &cmds.Command{
Helptext: cmds.HelpText{
Tagline: "Set how long to keep inactive requests in the log",
Tagline: "Set how long to keep inactive requests in the log.",
},
Arguments: []cmds.Argument{
cmds.StringArg("time", true, false, "time to keep inactive requests in log"),
cmds.StringArg("time", true, false, "Time to keep inactive requests in log."),
},
Run: func(req cmds.Request, res cmds.Response) {
tval, err := time.ParseDuration(req.Arguments()[0])