1
0
mirror of https://github.com/go-task/task.git synced 2025-06-15 00:15:10 +02:00

Make --init generate .yml instead of .yaml (#1062)

This commit is contained in:
Misite Bao
2023-03-17 08:53:01 +08:00
committed by GitHub
parent 291ee123c9
commit 15ef1fa1c2
6 changed files with 19 additions and 14 deletions

View File

@ -704,11 +704,11 @@ func TestStatusVariables(t *testing.T) {
func TestInit(t *testing.T) {
const dir = "testdata/init"
var file = filepathext.SmartJoin(dir, "Taskfile.yaml")
var file = filepathext.SmartJoin(dir, "Taskfile.yml")
_ = os.Remove(file)
if _, err := os.Stat(file); err == nil {
t.Errorf("Taskfile.yaml should not exist")
t.Errorf("Taskfile.yml should not exist")
}
if err := task.InitTaskfile(io.Discard, dir); err != nil {
@ -716,7 +716,7 @@ func TestInit(t *testing.T) {
}
if _, err := os.Stat(file); err != nil {
t.Errorf("Taskfile.yaml should exist")
t.Errorf("Taskfile.yml should exist")
}
_ = os.Remove(file)
}