Merge branch 'add-sandlot'

This commit is contained in:
Chris Wanstrath 2026-02-19 11:21:49 -08:00
commit e5085d50ed

View File

@ -411,6 +411,23 @@ program
}
})
// ── sandlot dir <branch> ────────────────────────────────────────────
program
.command("dir")
.argument("<branch>", "branch name")
.description("Print the worktree path for a session")
.action(async (branch: string) => {
const root = await git.repoRoot()
const session = await state.getSession(root, branch)
if (!session) {
console.error(`No session found for branch "${branch}".`)
process.exit(1)
}
process.stdout.write(session.worktree + "\n")
})
// ── sandlot vm ───────────────────────────────────────────────────────
const vmCmd = program.command("vm").description("Manage the sandlot VM")