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)) }
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)) }
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])) }