Closed FedeRBeije closed 5 months ago
Hello @FedeRBeije!
For the group
to work, you need to return the prompt result at each call.
For example:
const templateGroup = await group(
{
language: async () => {
- await select({
+ return await select({
message: 'Select a language',
options: [
{label: 'Typescript', value: 'typescript'},
{label: 'Javascript', value: 'javascript'},
],
initialValue: 'typescript',
})
},
Oh i see, my mistake sorry. Thanks
No problem! If you have any further questions or concerns, feel free to ask. 🚀
Environment
@clack/prompts
]Describe the bug
To Reproduce
Just create a group with select and multiselect
Steps to reproduce the behavior:
Expected behavior I should get the values
Additional Information
https://github.com/natemoo-re/clack/assets/108535310/9fd97ffc-bbba-4f20-82ea-9c4fa9d3a2d7
https://github.com/natemoo-re/clack/assets/108535310/f9f102d7-c34f-4b76-aef7-33cae1a477c7