Skip to content

Commit e781ac2

Browse files
committed
own Taskfile: add task "todo" to print TODOs in code
1 parent ef26959 commit e781ac2

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Taskfile.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ dl-deps:
1010
cmds:
1111
- go get -u github.com/golang/lint/golint
1212
- go get -u github.com/goreleaser/goreleaser
13+
- go get -u github.com/asticode/go-astitodo/astitodo
1314
- go get -u github.com/golang/dep/cmd/dep
1415

1516
update-deps:
@@ -46,3 +47,8 @@ test-release:
4647
desc: Tests release process without publishing
4748
cmds:
4849
- goreleaser --skip-validate --skip-publish
50+
51+
todo:
52+
desc: Prints TODO comments present in the code
53+
cmds:
54+
- astitodo {{.GO_PACKAGES}}

Taskvars.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
GIT_COMMIT: $git log -n 1 --format=%h
2+
3+
GO_PACKAGES:
4+
.
5+
./cmd/task
6+
./execext

0 commit comments

Comments
 (0)