Example #1
0
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)
}
Example #2
0
func (c *fakeComplicatedCommand) Execute(args []string) cmdr.Result {
	return cmdr.Successf("Complicated and fake.")
}
Example #3
0
func (c otherCommand) Execute(args []string) cmdr.Result {
	return cmdr.Successf("other executes!")
}
Example #4
0
func (c complicatedCommand) Execute(args []string) cmdr.Result {
	return cmdr.Successf("complicated executes")
}
Example #5
0
func (c rootCommand) Execute(args []string) cmdr.Result {
	return cmdr.Successf(c.Help())
}