1
0
mirror of https://github.com/go-task/task.git synced 2025-11-27 22:38:20 +02:00

Use semver for Taskfile versions

This commit is contained in:
Andrey Nering
2018-03-03 18:54:42 -03:00
parent afe6744e97
commit 2d4ca37226
7 changed files with 70 additions and 15 deletions

View File

@@ -2,8 +2,7 @@ package taskfile
// Taskfile represents a Taskfile.yml
type Taskfile struct {
// TODO: version is still not used
Version int
Version string
Tasks Tasks
}
@@ -14,7 +13,7 @@ func (tf *Taskfile) UnmarshalYAML(unmarshal func(interface{}) error) error {
}
var taskfile struct {
Version int
Version string
Tasks Tasks
}
if err := unmarshal(&taskfile); err != nil {