-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add helptext, default logic to ipfs stats
#2681
Conversation
LGMT IIRC Teamcity fail seems to be unrelated. |
fbba4d6
to
14023a0
Compare
Updated synopsis to match Yeah, |
14023a0
to
6245903
Compare
Fixed spacing. |
LGTM but you have binary files in your PR. |
6245903
to
56fcb10
Compare
Fixed. |
Tagline: "Query ipfs statistics.", | ||
Synopsis: "ipfs stats <command>", | ||
ShortDescription: `'ipfs stats' is a set of commands to help look at statistics for your ipfs node.`, | ||
LongDescription: `'ipfs stats' is a set of commands to help look at statistics for your ipfs node.`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can probably add some logic that sets the long description to the short description if unset
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(not that you have to change anything here, just saying that might be a nice feature)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opened #2691.
b920e36
to
1523ae3
Compare
LGTM |
return | ||
} | ||
interval = v | ||
v, err := time.ParseDuration(timeS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interval, err := ...
I've added: Synopsis, shortDescription, and longDescription for stats and stats bw. I also added default(false) for poll and default("1s") for interval, and modified the logic to make it fit. Part of #2484 and #2647. License: MIT Signed-off-by: Richard Littauer <[email protected]>
1523ae3
to
8ee399f
Compare
I've added: Synopsis, shortDescription, and longDescription for stats and stats bw.
I also added default(false) for poll and default("1s") for interval, and modified the logic to make it fit.
Part of #2484 and #2647.
License: MIT
Signed-off-by: Richard Littauer [email protected]