Пример #1
0
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
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
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]))
}