File tree 2 files changed +16
-14
lines changed
2 files changed +16
-14
lines changed Original file line number Diff line number Diff line change 1
1
package task
2
2
3
3
import (
4
+ _ "embed"
4
5
"os"
5
6
6
7
"github.com/go-task/task/v3/errors"
7
8
"github.com/go-task/task/v3/internal/filepathext"
8
9
)
9
10
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
-
24
11
const defaultTaskFilename = "Taskfile.yml"
25
12
13
+ //go:embed taskfile/templates/default.yml
14
+ var DefaultTaskfile string
15
+
26
16
// InitTaskfile creates a new Taskfile at path.
27
17
//
28
18
// 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