提交 7c18354c 编写于 作者: S Sean Chen 提交者: Alessandro Arzilli

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

上级 9076056c
...@@ -241,6 +241,7 @@ Called without arguments it will show information about the current goroutine. ...@@ -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 a single argument it will switch to the specified goroutine.
Called with more arguments it will execute a command on the specified goroutine. Called with more arguments it will execute a command on the specified goroutine.
Aliases: gr
## goroutines ## goroutines
List program goroutines. List program goroutines.
...@@ -257,6 +258,7 @@ Print out info for every goroutine. The flag controls what information is shown ...@@ -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. If no flag is specified the default is -u.
Aliases: grs
## help ## help
Prints the help message. Prints the help message.
......
...@@ -166,7 +166,7 @@ Current limitations: ...@@ -166,7 +166,7 @@ Current limitations:
clearall [<linespec>] 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.`}, 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)] 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 ...@@ -179,7 +179,7 @@ Print out info for every goroutine. The flag controls what information is shown
-t displays stack trace of goroutine -t displays stack trace of goroutine
If no flag is specified the default is -u.`}, 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
goroutine <id> goroutine <id>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册