go-godo / godo

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

Why not tasks/main.go #30

Closed clouds56 closed 8 years ago

clouds56 commented 9 years ago

In godo.v2, the document says that only Gododir/main.go will be read. personally I don't like a directory call itself dir and a file called somefile. If you don't like "tasks", maybe just godo/main.go would be fine. or you can use some option to switch which files used for godo task.

mgutz commented 9 years ago

There is no rhyme reason, it was an arbitrary choice. I could easily add tasks/main.go. There are currently 3 files that are searched for legacy reasons

https://github.com/go-godo/godo/blob/v2/cmd/godo/main.go#L50

clouds56 commented 9 years ago

Yes, I modify the line and build godo.v2 myself, and it works. Thank you.