Skip to content

Commit 990a79a

Browse files
committed
Update Taskfile.yml
1 parent 26b7c26 commit 990a79a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ fabric.properties
7070

7171
tags
7272

73+
.task/
7374
try-golang
7475
bin/
7576
.target

Taskfile.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,16 @@ tasks:
1010
desc: Build app
1111
cmds:
1212
- go build .
13+
sources:
14+
- ./**/*.go
15+
generates:
16+
- try-golang{{exeExt}}
17+
method: timestamp
1318
run:
1419
desc: Run app
20+
deps: [build]
1521
cmds:
16-
- cmd: go run . -onetime
22+
- cmd: ./try-golang -onetime
1723
ignore_error: true
1824
test:
1925
desc: Test
@@ -41,6 +47,8 @@ tasks:
4147
desc: Clean
4248
cmds:
4349
- go clean
50+
- rm -f ./try-golang
51+
- rm -rf ./.task
4452
install-requirements:
4553
desc: install required libraries
4654
cmds:

0 commit comments

Comments
 (0)