allow different target directory for mise run dev:publish · Entire

allow different target directory for mise run dev:publish

8c17ac9→main·

Soph·2w ago·1 file·+10 added/-3 removed

Sessions

44496786b888View transcript

[?
Add Target Folder Parameter to Mise RunClaude Code·Opus 4.8[1m]·4 steps](/content/gh/entireio/cli/session/7d2a5120-6ec4-4238-9310-b8eb3bed124a#timeline-44496786b888/index.html)

Changes

1

1
2
2
3
4
5
6
6
7
7
8
9
10
11
12
13
14
15
16
17

#!/usr/bin/env bash
#MISE description="Install binaries into ~/go/bin"
#MISE description="Install binaries into ~/go/bin (or a target folder)"
#USAGE arg "[target]" help="Target folder to install binaries into; defaults to GOBIN or ~/go/bin"

set -eu

export GOBIN=${GOPATH:-$HOME/go}/bin
echo "NOTE: we're overriding \$GOBIN: $GOBIN" 1>&2
target=${usage_target:-${1:-}}
if [ -n "$target" ]; then
  mkdir -p "$target"
  # go install requires an absolute GOBIN path
  GOBIN=$(cd "$target" && pwd)
fi
export GOBIN=${GOBIN:-${GOPATH:-$HOME/go}/bin}
echo "Installing into: $GOBIN" 1>&2

commands=(
  entire

Mmise-tasks/dev/publish+10/-3