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