go-godo / godo

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

Add Args to context #19

Closed mgutz closed 9 years ago

mgutz commented 9 years ago

Tasks should have arguments

// godo new-migration name=seed -v
p.Task("new-migration", function(c *Context) {
    name := c.Args.MustString("name")
    verbose := c.Args.MustBool("v")
})