Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandHandler ¶
CommandHandler is a function that handles a meta command.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry holds registered meta commands.
func NewRegistry ¶
NewRegistry creates a new command registry with default commands.
func (*Registry) Register ¶
func (r *Registry) Register(name, description string, handler CommandHandler)
Register adds a command to the registry.
Click to show internal directories.
Click to hide internal directories.