aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiraku Sugiura <hiraku.sugiura@gmail.com>2022-10-12 00:00:00 +0000
committerBozhidar Batsov <bozhidar@batsov.dev>2022-10-25 11:36:56 +0300
commit41c60b3947543af2b610809511496bdae55f3247 (patch)
treecff60cc396426f44485a24db56ebcc0252defc7b
parent0bb7b75af874a19d3e7c4f00927f735707999c83 (diff)
Add support go-task/task
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/
-rw-r--r--CHANGELOG.md1
-rw-r--r--projectile.el6
2 files changed, 7 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0e580c6..933967f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
diff --git a/projectile.el b/projectile.el
index 0bde72c..922a550 100644
--- a/projectile.el
+++ b/projectile.el
@@ -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"