bopodev 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -170,10 +170,10 @@ function printSummaryCard(lines) {
|
|
|
170
170
|
async function runDoctorCommand(cwd) {
|
|
171
171
|
const workspaceRoot = await resolveWorkspaceRoot(cwd);
|
|
172
172
|
if (!workspaceRoot) {
|
|
173
|
-
throw new Error("Could not find a pnpm workspace root. Run this command from inside the
|
|
173
|
+
throw new Error("Could not find a pnpm workspace root. Run this command from inside the Bopodev repo.");
|
|
174
174
|
}
|
|
175
175
|
printBanner();
|
|
176
|
-
printSection("
|
|
176
|
+
printSection("bopodev doctor");
|
|
177
177
|
printLine(`Workspace: ${workspaceRoot}`);
|
|
178
178
|
printDivider();
|
|
179
179
|
const checks = await runDoctorChecks({ workspaceRoot });
|
|
@@ -216,10 +216,10 @@ var defaultDeps = {
|
|
|
216
216
|
async function runOnboardFlow(options, deps = defaultDeps) {
|
|
217
217
|
const workspaceRoot = await resolveWorkspaceRoot(options.cwd);
|
|
218
218
|
if (!workspaceRoot) {
|
|
219
|
-
throw new Error("Could not find a pnpm workspace root. Run this command from inside the
|
|
219
|
+
throw new Error("Could not find a pnpm workspace root. Run this command from inside the Bopodev repo.");
|
|
220
220
|
}
|
|
221
221
|
printBanner();
|
|
222
|
-
printSection("
|
|
222
|
+
printSection("bopodev onboard");
|
|
223
223
|
printLine(`Workspace: ${workspaceRoot}`);
|
|
224
224
|
printDivider();
|
|
225
225
|
if (!options.yes) {
|
|
@@ -277,7 +277,7 @@ async function runOnboardFlow(options, deps = defaultDeps) {
|
|
|
277
277
|
} else {
|
|
278
278
|
printSection("Next commands");
|
|
279
279
|
printLine("- Run: pnpm start");
|
|
280
|
-
printLine("- Diagnose:
|
|
280
|
+
printLine("- Diagnose: bopodev doctor");
|
|
281
281
|
}
|
|
282
282
|
return {
|
|
283
283
|
workspaceRoot,
|
|
@@ -316,8 +316,8 @@ async function hasExistingInstall(workspaceRoot) {
|
|
|
316
316
|
|
|
317
317
|
// src/index.ts
|
|
318
318
|
var program = new Command();
|
|
319
|
-
program.name("
|
|
320
|
-
program.command("onboard").description("Install, configure, and start
|
|
319
|
+
program.name("bopodev").description("Bopodev CLI");
|
|
320
|
+
program.command("onboard").description("Install, configure, and start Bopodev locally").option("--yes", "Run non-interactively using defaults", false).option("--force-install", "Force reinstall dependencies even if already installed", false).option("--no-start", "Run setup and doctor checks without starting services").action(async (options) => {
|
|
321
321
|
try {
|
|
322
322
|
await runOnboardFlow({
|
|
323
323
|
cwd: process.cwd(),
|