terminal: add alias gr for goroutine and grs for goroutines (#1559)

This commit is contained in:
Sean Chen 2019-05-31 15:33:39 +08:00 committed by Alessandro Arzilli
parent 9076056c70
commit 7c18354c1c
2 changed files with 4 additions and 2 deletions

@ -241,6 +241,7 @@ Called without arguments it will show information about the current goroutine.
Called with a single argument it will switch to the specified goroutine.
Called with more arguments it will execute a command on the specified goroutine.
Aliases: gr
## goroutines
List program goroutines.
@ -257,6 +258,7 @@ Print out info for every goroutine. The flag controls what information is shown
If no flag is specified the default is -u.
Aliases: grs
## help
Prints the help message.

@ -166,7 +166,7 @@ Current limitations:
clearall [<linespec>]
If called with the linespec argument it will delete all the breakpoints matching the linespec. If linespec is omitted all breakpoints are deleted.`},
{aliases: []string{"goroutines"}, cmdFn: goroutines, helpMsg: `List program goroutines.
{aliases: []string{"goroutines", "grs"}, cmdFn: goroutines, helpMsg: `List program goroutines.
goroutines [-u (default: user location)|-r (runtime location)|-g (go statement location)|-s (start location)] [ -t (stack trace)]
@ -179,7 +179,7 @@ Print out info for every goroutine. The flag controls what information is shown
-t displays stack trace of goroutine
If no flag is specified the default is -u.`},
{aliases: []string{"goroutine"}, allowedPrefixes: onPrefix, cmdFn: c.goroutine, helpMsg: `Shows or changes current goroutine
{aliases: []string{"goroutine", "gr"}, allowedPrefixes: onPrefix, cmdFn: c.goroutine, helpMsg: `Shows or changes current goroutine
goroutine
goroutine <id>