Example #1
0
File: project.go Project: 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))
}
Example #2
0
File: project.go Project: 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))
}
Example #3
0
File: project.go Project: 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]))
}