Skip to content

Commit

Permalink
chore: modify justfile to use internal function instead of which
Browse files Browse the repository at this point in the history
  • Loading branch information
ulic-youthlic committed Mar 6, 2025
1 parent 0f28e64 commit a962517
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ default:
@just --list

info:
@echo JUST PATH: `which just`
@echo GIT PATH: `which git`
@echo CARGO PATH: `which cargo`
@echo GREP PATH: `which grep`
@echo XARGS PATH: `which xargs`
@echo TYPOS PATH: `which typos`
@echo DENO PATH: `which deno`
@echo TAPLO PATH: `which taplo`
@echo SHFMT PATH: `which shfmt`
@echo JUST PATH: {{ just_executable() }}
@echo GIT PATH: {{ require(if os_family() == "windows" { "git.exe" } else { "git" }) }}
@echo CARGO PATH: {{ require(if os_family() == "windows" { "cargo.exe" } else { "cargo" }) }}
@echo GREP PATH: {{ require(if os_family() == "windows" { "grep.exe" } else { "grep" }) }}
@echo XARGS PATH: {{ require(if os_family() == "windows" { "xargs.exe" } else { "xargs" }) }}
@echo TYPOS PATH: {{ require(if os_family() == "windows" { "typos.exe" } else { "typos" }) }}
@echo DENO PATH: {{ require(if os_family() == "windows" { "deno.exe" } else { "deno" }) }}
@echo TAPLO PATH: {{ require(if os_family() == "windows" { "taplo.exe" } else { "taplo" }) }}
@echo SHFMT PATH: {{ require(if os_family() == "windows" { "shfmt.exe" } else { "shfmt" }) }}

check: info typoCheck fmtCheck clippyCheck buildCheck docCheck testCheck

Expand Down

0 comments on commit a962517

Please sign in to comment.