func (c helpCommand) Execute(subcommands []string) cmdr.Result { help, err := c.CLI.Help(root, "sous", subcommands) if err != nil { return cmdr.EnsureErrorResult(err) } return cmdr.Successf(help) }
func (c *fakeComplicatedCommand) Execute(args []string) cmdr.Result { return cmdr.Successf("Complicated and fake.") }
func (c otherCommand) Execute(args []string) cmdr.Result { return cmdr.Successf("other executes!") }
func (c complicatedCommand) Execute(args []string) cmdr.Result { return cmdr.Successf("complicated executes") }
func (c rootCommand) Execute(args []string) cmdr.Result { return cmdr.Successf(c.Help()) }