Example #1
0
// Execute implements "../commander".Controller.
func (c *Controller) Execute(command commands.Command) {
	executed, _ := execRecursively(command, c)
	if !executed {
		panic(fmt.Errorf("Command %s ran without executing", command.Name()))
	}
	c.Editor().Focus()
}