示例#1
0
文件: project.go 项目: THEY/godo
func printDeprecatedDebounceWarning(name string, ms int64) {
	if !deprecatedWarnings {
		return
	}
	util.Deprecate(fmt.Sprintf(`Debounce() option is deprecated. Use Task#Debounce()
	p.Task("%s", func(){
	}).Debounce(%d)
`, name, ms))
}
示例#2
0
文件: project.go 项目: THEY/godo
func printDeprecatedDescriptionWarning(name string, desc string) {
	if !deprecatedWarnings {
		return
	}
	util.Deprecate(fmt.Sprintf(`Description option is deprecated. Use Task#Description()
	p.Task("%s", func(){
	}).Description(%q)
`, name, desc))
}
示例#3
0
文件: project.go 项目: THEY/godo
func printDeprecatedWatchWarning(name string, globs []string) {
	if !deprecatedWarnings {
		return
	}
	util.Deprecate(fmt.Sprintf(`W{} and Watch{} are deprecated. Use Task#Watch()
	p.Task("%s", func(){
	}).Watch(%q)
`, name, globs[0]))
}