mirror of
https://github.com/go-delve/delve.git
synced 2025-10-31 02:36:18 +08:00
Add documentation
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
// Package command implements functions for responding to user
|
||||
// input and dispatching to appropriate backend commands.
|
||||
package command
|
||||
|
||||
import (
|
||||
@ -21,6 +23,8 @@ func DebugCommands() *Commands {
|
||||
return &Commands{cmds}
|
||||
}
|
||||
|
||||
// Register custom commands. Expects cf to be a func of type cmdfunc,
|
||||
// returning only an error.
|
||||
func (c *Commands) Register(cmdstr string, cf cmdfunc) {
|
||||
c.cmds[cmdstr] = cf
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user