Skip to content

Commit

Permalink
Add support go-task/task
Browse files Browse the repository at this point in the history
Task is a task runner.

go-task/task support multile file name (Taskfile.yml, Taskfile.yaml, Taskfile.dist.yml, Taskfile.dist.yaml),
but this patch just support Taskfile.yml for now.

Reference: https://taskfile.dev/
  • Loading branch information
blame2020 authored and bbatsov committed Oct 25, 2022
1 parent 0bb7b75 commit 41c60b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* [#1747](https://github.com/bbatsov/projectile/pull/1747): Add support for preset-based install-commands for CMake projects.
* [#1768](https://github.com/bbatsov/projectile/pull/1768) Add support for disabling command caching on a per-project basis.
* [#1797](https://github.com/bbatsov/projectile/pull/1797) Make all project type attributes locally overridable
* [#1803](https://github.com/bbatsov/projectile/pull/1803): Add support go-task/task

### Bugs fixed

Expand Down
6 changes: 6 additions & 0 deletions projectile.el
Original file line number Diff line number Diff line change
Expand Up @@ -3157,6 +3157,12 @@ a manual COMMAND-TYPE command is created with
:test #'projectile--cmake-test-command
:install #'projectile--cmake-install-command
:package "cmake --build build --target package")
;; go-task/task
(projectile-register-project-type 'go-task '("Taskfile.yml")
:project-file "Taskfile.yml"
:compile "task build"
:test "task test"
:install "task install")
;; Go should take higher precedence than Make because Go projects often have a Makefile.
(projectile-register-project-type 'go projectile-go-project-test-function
:compile "go build"
Expand Down

0 comments on commit 41c60b3

Please sign in to comment.