From 41c60b3947543af2b610809511496bdae55f3247 Mon Sep 17 00:00:00 2001 From: Hiraku Sugiura Date: Wed, 12 Oct 2022 00:00:00 +0000 Subject: [PATCH] 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/ --- CHANGELOG.md | 1 + projectile.el | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e580c6cf..933967f5f 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 0bde72c4e..922a5509f 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"