Revert "add description for net stat and limit commands"

This reverts commit 19c8ea3288.
This commit is contained in:
Aayush 2022-03-02 15:39:17 -05:00
parent a7e02f7207
commit ce040b7d33

View File

@ -611,18 +611,8 @@ var NetBlockListCmd = &cli.Command{
var NetStatCmd = &cli.Command{
Name: "stat",
Usage: "Report resource usage for a scope",
Usage: "report resource stat for a scope",
ArgsUsage: "scope",
Description: `Report resource usage for a scope.
The scope can be one of the following:
- system -- reports the system aggregate resource usage.
- transient -- reports the transient resource usage.
- svc:<service> -- reports the resource usage of a specific service.
- proto:<proto> -- reports the resource usage of a specific protocol.
- peer:<peer> -- reports the resource usage of a specific peer.
- all -- reports the resource usage for all currently active scopes.
`,
Action: func(cctx *cli.Context) error {
api, closer, err := GetAPI(cctx)
if err != nil {
@ -651,19 +641,8 @@ var NetStatCmd = &cli.Command{
var NetLimitCmd = &cli.Command{
Name: "limit",
Usage: "Get or set resource limits for a scope",
Usage: "get or set resource limit for a scope",
ArgsUsage: "scope [limit]",
Description: `Get or set resource limits for a scope.
The scope can be one of the following:
- system -- reports the system aggregate resource usage.
- transient -- reports the transient resource usage.
- svc:<service> -- reports the resource usage of a specific service.
- proto:<proto> -- reports the resource usage of a specific protocol.
- peer:<peer> -- reports the resource usage of a specific peer.
The limit is json-formatted, with the same structure as the limits file.
`,
Flags: []cli.Flag{
&cli.BoolFlag{
Name: "set",