Closed mgutz closed 10 years ago
May I ask, why did you choose for Godofile.go
to be in a subdirectory tasks
?
Most tooling configuration files such as Vagrantfile
, Dockerfile
, etc. are in the root of the source tree..
Golint produces warnings if two packages are in the same directory. Moreover, as tasks become non-trivial supporting .go files are created. I felt it is simpler to just enforce a best practice from the start.
Those are good points.
I thought about using build tags but indeed it's better to have the sources separated..
I still feel a bit strange about a folder named 'tasks'.. What do you think about creating a Godofolder
or Gododir
or Godofiles
(still a folder). It would be better identifiable from the projects root, and it also encourages users to think of Godo files as a 'package with tasks', not as a single file.
I like the idea. tasks
was chosen out of habit from using tools like rake, thor and gulp. In order of preference
Which one do you prefer?
I like Gododir the best, it speaks to the imagination when people are used to Foobarfile's.. Maybe we'll even set a trend here; Foobardir's. I'm also thinking that if it would be 'Godotasks', new users could assume that every file in the dir is single task.
But then on the other hand; Godotasks is more descriptive for new users in what the /goal/ for the folder is... without knowing what godo is, a user can properly assume what the files are for... So I'm in doubt.. :frowning:
I think both Godotasks
and Gododir
are great options. You choose :smile:
godo init
should create a simpletasks/Godofile.go
if one does not exist.