mirror of
https://github.com/go-task/task.git
synced 2025-11-06 09:09:13 +02:00
Move setting of default version to "taskfile" package
This commit is contained in:
@@ -9,6 +9,7 @@ type Taskfile struct {
|
||||
// UnmarshalYAML implements yaml.Unmarshaler interface
|
||||
func (tf *Taskfile) UnmarshalYAML(unmarshal func(interface{}) error) error {
|
||||
if err := unmarshal(&tf.Tasks); err == nil {
|
||||
tf.Version = "1"
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user