示例#1
0
文件: help.go 项目: opentable/sous
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)
}
示例#2
0
func (c *fakeComplicatedCommand) Execute(args []string) cmdr.Result {
	return cmdr.Successf("Complicated and fake.")
}
示例#3
0
文件: other.go 项目: opentable/sous
func (c otherCommand) Execute(args []string) cmdr.Result {
	return cmdr.Successf("other executes!")
}
示例#4
0
func (c complicatedCommand) Execute(args []string) cmdr.Result {
	return cmdr.Successf("complicated executes")
}
示例#5
0
文件: root.go 项目: opentable/sous
func (c rootCommand) Execute(args []string) cmdr.Result {
	return cmdr.Successf(c.Help())
}