We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
因为有存在这种场景,开发人员需要手动触发执行业务逻辑代码,所以提供了脚本模式的支持。
app/console/commands
func RegisterCommand(c *command.Command) { c.AddFunc("test", test) } func test() { fmt.Println("run test command") return }
执行命名为test的脚本任务
build/bin/snow -a command -m test