mirror of
https://github.com/go-task/task.git
synced 2025-06-29 00:51:43 +02:00
cleanp taskfile reader
This commit is contained in:
@ -13,11 +13,6 @@ type Taskfile struct {
|
|||||||
|
|
||||||
// UnmarshalYAML implements yaml.Unmarshaler interface
|
// UnmarshalYAML implements yaml.Unmarshaler interface
|
||||||
func (tf *Taskfile) UnmarshalYAML(unmarshal func(interface{}) error) error {
|
func (tf *Taskfile) UnmarshalYAML(unmarshal func(interface{}) error) error {
|
||||||
if err := unmarshal(&tf.Tasks); err == nil {
|
|
||||||
tf.Version = "1"
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
var taskfile struct {
|
var taskfile struct {
|
||||||
Version string
|
Version string
|
||||||
Expansions int
|
Expansions int
|
||||||
|
Reference in New Issue
Block a user