Add Target Folder Parameter to Mise Run

Done. mise run dev:publish now takes an optional target folder.
Usage:
mise run dev:publish— installs into$GOBIN/~/go/binas beforemise run dev:publish ./some/folder— installs into that folder instead
Changes to mise-tasks/dev/publish:
- Declared the arg via a
#USAGE arg "[target]"line so mise parses it and--helpdocuments it. - The target is created (
mkdir -p) and resolved to an absolute path (go installrejects a relativeGOBIN). - Falls back to the original
$GOBIN/~/go/bindefault when no argument is given.
Both the targeted and default paths are verified working above. (The default now resolves to mise's Go install bin since it sets GOBIN, same as before my change.)
That's the new arg working — mise run dev:publish ~/.local/bin resolved the target to /Users/soph/.local/bin and installed entire and git-remote-entire there. 👍
but the export is only in the context of that mise run? or we are setting it in general?
Only in the context of that run. The export GOBIN=... lives in the subprocess that runs the script — it's exported so the child go install commands inherit it, but it dies when the task finishes. Your interactive shell's GOBIN is never touched.
Mechanically:
mise run dev:publishspawns the script as a child process.exportmakes the var visible to that script's children (the twogo installcalls).- A child process can't mutate its parent's environment, so nothing persists back to your shell or to future
miseruns.
So each invocation is self-contained — the target folder you pass only affects that one install.