Effect CommunityEC
Effect Community4d ago
1 reply
Nuada

Using `zPrompt.multiSelect` in Effect Typescript

After pressing enter once using Prompt.multiSelect from @effect/cli@0.73.0 the prompt is finishing without allowing me to select more options, is this the expected behaviour? Should I be using another type of prompt

        const entitiesToFilter = yield* Prompt.multiSelect({
            message: 'Please select the entities which you want to generate',
            choices: pipe(
                schemas.definitions,
                Record.collect(key => { return { title: key, value: key }})
            ),
        })
Was this page helpful?