From 023d30768c86670b375eeef292478fdccdb782cf Mon Sep 17 00:00:00 2001 From: Risu <79110363+risu729@users.noreply.github.com> Date: Tue, 17 Dec 2024 09:33:42 +0900 Subject: [PATCH] chore(tasks.toml): use exec template for command substitutions (#1100) * chore(tasks.toml): use exec template for command substitutions * chore(tasks.toml): use exec templates for other tasks --- tasks.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks.toml b/tasks.toml index 5133008d..5e75bb6a 100644 --- a/tasks.toml +++ b/tasks.toml @@ -92,16 +92,16 @@ hide = true ["check:shfmt"] # cannot exclude gitignored files # ref: https://github.com/mvdan/sh/issues/288 -run = "scripts=$(mise run util:list-scripts) && shfmt --list --write --simplify $scripts" +run = "shfmt --list --write --simplify {{ exec(command='mise run util:list-scripts') }}" ["ci:shfmt"] -run = "scripts=$(mise run util:list-scripts) && shfmt --diff --simplify $scripts" +run = "shfmt --diff --simplify {{ exec(command='mise run util:list-scripts') }}" hide = true ["lint:shellcheck"] # recursive globbing is not supported # ref: https://www.shellcheck.net/wiki/Recursiveness # ref: https://github.com/koalaman/shellcheck/issues/143 -run = "scripts=$(mise run util:list-scripts) && shellcheck --external-sources $scripts" +run = "shellcheck --external-sources {{ exec(command='mise run util:list-scripts') }}" alias = "check:shellcheck" ["check:yamlfmt"] @@ -146,7 +146,7 @@ hide = true ["worker:dev"] depends = ["buni:worker"] dir = "worker" -run = "args=$(mise run worker:wrangler-args) && bun run wrangler dev $args" +run = "bun run wrangler dev ${{ exec(command='mise run worker:wrangler-args') }}" ["worker:test"] depends = ["buni:worker"]