go-godo / godo

golang build tool in the spirt of rake, gulp
MIT License
535 stars 31 forks source link

Add Printf-like companions to exec functions #20

Closed mgutz closed 9 years ago

mgutz commented 9 years ago

All exec functions should have Printf companions

archivesDir, _ := filepath.Abs("/tmp/archives")

p.Task("build", func() {
    Runf("curl http://acme.com/coyote.png -o %s/coyote.png", archivesDir)
})
mgutz commented 9 years ago

Bash, Run scripts can be Go templates instead of printf formas.