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 committed Oct 12, 2022
1 parent 6838628 commit c45847c
Showing 1 changed file with 6 additions and 0 deletions.
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 c45847c

Please sign in to comment.