1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-26 23:53:19 +08:00

Merge pull request #2606 from ipfs/feature/diag-cmds-grammar

Fixed up comments for `diag cmds`
This commit is contained in:
Jeromy Johnson
2016-04-26 17:20:49 -07:00

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])