@lenne.tech/cli
Version:
lenne.Tech CLI: lt
37 lines (36 loc) • 1.85 kB
JavaScript
;
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Parallel ticket dev environments (`lt ticket <subcommand>`).
*
* Each ticket runs in its OWN git worktree (a fresh branch from `origin/dev`)
* with its OWN isolated `lt dev` stack — own URLs, ports, Caddy block and empty
* database — so several tickets can be developed, browser-tested and E2E-tested
* fully in parallel without ever influencing each other.
*
* Subcommands:
* - `start <name>` — create the worktree + bring the isolated stack up
* - `list` — dashboard of all ticket envs (URLs, branch, status, DB)
* - `switch <id>` — show + open a ticket worktree in your editor
* - `test <id>` — run the E2E suite in the ticket's isolated stack
* - `stop <id>` — tear the env down + remove the worktree (branch kept)
*/
module.exports = {
alias: ['tk'],
description: 'Parallel ticket dev environments (worktree + isolated lt dev stack)',
hidden: false,
name: 'ticket',
run: (toolbox) => __awaiter(void 0, void 0, void 0, function* () {
yield toolbox.helper.showMenu('ticket');
return 'ticket';
}),
};