From e781ac251221de1661643388cff745e8cc8096bb Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Sat, 15 Jul 2017 13:57:39 -0300 Subject: [PATCH] own Taskfile: add task "todo" to print TODOs in code --- Taskfile.yml | 6 ++++++ Taskvars.yml | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/Taskfile.yml b/Taskfile.yml index 5d7fc692..1ddedd31 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -10,6 +10,7 @@ dl-deps: cmds: - go get -u github.com/golang/lint/golint - go get -u github.com/goreleaser/goreleaser + - go get -u github.com/asticode/go-astitodo/astitodo - go get -u github.com/golang/dep/cmd/dep update-deps: @@ -46,3 +47,8 @@ test-release: desc: Tests release process without publishing cmds: - goreleaser --skip-validate --skip-publish + +todo: + desc: Prints TODO comments present in the code + cmds: + - astitodo {{.GO_PACKAGES}} diff --git a/Taskvars.yml b/Taskvars.yml index 7222f00b..1f845baf 100644 --- a/Taskvars.yml +++ b/Taskvars.yml @@ -1 +1,6 @@ GIT_COMMIT: $git log -n 1 --format=%h + +GO_PACKAGES: + . + ./cmd/task + ./execext