Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/ax/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -730,9 +730,8 @@ async function collectInteractive(
// present to deselect anything they don't want. Same yes-when-asked / no-when-silent policy the
// README documents — just collapsed from seven yes/no questions into one list, since none of these
// choices depend on another's answer.
stdout('[ax]');
const setupValues = new Set(
await prompter.multiSelect('What should ax set up? (All are recommended)', SETUP_OPTIONS),
await prompter.multiSelect('[ax] What should ax set up? (All are recommended)', SETUP_OPTIONS),
);
const setupSelected = (value: SetupOptionValue): boolean => setupValues.has(value);

Expand Down
2 changes: 1 addition & 1 deletion packages/ax/test/init.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ describe('runInit interactive (scripted answers)', () => {
// rows — the setup multi-select (asked right after) offers its own unrelated seven rows, and
// this test is about the gating prompt's shape, not the setup one.
multiSelect: async (question, rows) => {
if (!question.startsWith('What should ax set up?')) offeredRows.push(...rows);
if (!question.startsWith('[ax] What should ax set up?')) offeredRows.push(...rows);
return rows
.filter(isMultiSelectChoice)
.filter((choice) => choice.selected)
Expand Down
Loading