refactor(cli): collapse duplicate CLI layer into src/cli (#630)

Move root cli*Commands and cliSetup into src/cli, delete the
forwarding layer, point src/cli.ts and tests at the owners. No
forwarding shims.
This commit is contained in:
morluto
2026-10-06 05:04:25 +08:00
committed by GitHub
parent e7f54b3310
commit 494d4db6d9
9 changed files with 71 additions and 71 deletions
+2 -2
View File
@@ -227,7 +227,7 @@ describe("interactive setup completion", () => {
"--input-type=module",
"--eval",
[
'import { renderInteractiveSetupResult } from "./dist/cliSetup.js";',
'import { renderInteractiveSetupResult } from "./dist/cli/interactiveSetup.js";',
"renderInteractiveSetupResult({",
' status: "ready",',
" plannedActions: [],",
@@ -287,7 +287,7 @@ const runJourney = async (
): Promise<JourneyResult> => {
const isolatedHome = await createTestTempDirectory("rea-cli-setup-test-");
const script = [
'import { confirmInteractiveSetup } from "./dist/cliSetup.js";',
'import { confirmInteractiveSetup } from "./dist/cli/interactiveSetup.js";',
`const actions = ${JSON.stringify(journeyActions)};`,
`const context = ${JSON.stringify({ stage: "select", clientStates, selectedClientIds: initialClientIds, clientSelectionAllowed: true })};`,
`let decision = await confirmInteractiveSetup(actions, ${JSON.stringify(accessible)}, context);`,