refactor(install): clone HarborForge.Cli to /tmp instead of fixed path #12
Reference in New Issue
Block a user
Delete Branch "refactor/install-cli-clone-from-repo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
installCli()previously read the CLI source from a fixed sibling path (./HarborForge.Clior../HarborForge.Cli) and silently skipped if it wasn't there.installManagedMonitor:git clone --depth 1 --branch <cliBranch>to/tmp/harborforge-cli-<ts>,go buildthere, copy the binary out,rm -rfthe tmp dir.--cli-branch <name>flag (defaultmain) for parity with--monitor-branch.Version=<date>+<branch>-<sha>sohf versionis informative instead of saying "dev".Test plan
node --checksyntax passesnode scripts/install.mjs --install --install-clifrom a fresh plugin checkout (no sibling HarborForge.Cli) — should clone + build + installnode scripts/install.mjs --install --install-cli --cli-branch <feature-branch>— should use the named branch