File tree Expand file tree Collapse file tree 2 files changed +16
-14
lines changed Expand file tree Collapse file tree 2 files changed +16
-14
lines changed Original file line number Diff line number Diff line change 11package task
22
33import (
4+ _ "embed"
45 "os"
56
67 "github.com/go-task/task/v3/errors"
78 "github.com/go-task/task/v3/internal/filepathext"
89)
910
10- const DefaultTaskfile = `# https://taskfile.dev
11-
12- version: '3'
13-
14- vars:
15- GREETING: Hello, World!
16-
17- tasks:
18- default:
19- cmds:
20- - echo "{{.GREETING}}"
21- silent: true
22- `
23-
2411const defaultTaskFilename = "Taskfile.yml"
2512
13+ //go:embed taskfile/templates/default.yml
14+ var DefaultTaskfile string
15+
2616// InitTaskfile creates a new Taskfile at path.
2717//
2818// path can be either a file path or a directory path.
Original file line number Diff line number Diff line change 1+ # https://taskfile.dev
2+
3+ version : ' 3'
4+
5+ vars :
6+ GREETING : Hello, World!
7+
8+ tasks :
9+ default :
10+ cmds :
11+ - echo "{{.GREETING}}"
12+ silent : true
You can’t perform that action at this time.
0 commit comments