Exemplo n.º 1
0
Arquivo: project.go Projeto: 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))
}
Exemplo n.º 2
0
Arquivo: project.go Projeto: 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))
}
Exemplo n.º 3
0
Arquivo: project.go Projeto: 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]))
}