Skip to content

Commit

Permalink
chore(tasks.toml): use exec template for command substitutions (#1100)
Browse files Browse the repository at this point in the history
* chore(tasks.toml): use exec template for command substitutions

* chore(tasks.toml): use exec templates for other tasks
  • Loading branch information
risu729 authored Dec 17, 2024
1 parent b0a6aac commit 023d307
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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"]
Expand Down

0 comments on commit 023d307

Please sign in to comment.