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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user