Skip to content

Commit 2649398

Browse files
committed
Update Taskfile
1 parent e419bb6 commit 2649398

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

Taskfile.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# https://github.com/go-task/task
22
version: "3"
33

4+
includes:
5+
OS:
6+
taskfile: ./Taskfile_{{OS}}.yml
7+
internal: true
8+
49
tasks:
510
default:
611
desc: Default (run)
@@ -19,7 +24,7 @@ tasks:
1924
desc: Run app
2025
deps: [build]
2126
cmds:
22-
- cmd: ./try-golang -onetime
27+
- cmd: ./try-golang{{exeExt}} -onetime
2328
ignore_error: true
2429
test:
2530
desc: Test
@@ -46,9 +51,7 @@ tasks:
4651
clean:
4752
desc: Clean
4853
cmds:
49-
- go clean
50-
- rm -f ./try-golang
51-
- rm -rf ./.task
54+
- task: OS:clean
5255
tags:
5356
desc: Make tags (Require universal-ctags)
5457
cmds:

Taskfile_linux.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# https://github.com/go-task/task
2+
version: "3"
3+
4+
tasks:
5+
clean:
6+
- go clean
7+
- rm -f ./try-golang{{exeExt}}
8+
- rm -rf ./.task

Taskfile_windows.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: '3'
2+
3+
tasks:
4+
clean:
5+
- go clean
6+
- cmd /c "del /F /Q ./try-golang{{exeExt}}"
7+
- cmd /c "rd /s /q .task"

0 commit comments

Comments
 (0)