apache / openserverless

Apache OpenServerless (incubating)
https://openserverless.apache.org
Apache License 2.0
139 stars 13 forks source link

Task-util-config: add a select and multiselect instructions to util/config/configurator/configurator.ts #66

Open dcremonini opened 2 months ago

dcremonini commented 2 months ago

Problem

To create a wizard configurator, a selection of a choice or a multiple selection are needed.

Currently it's not possible to formulate questions such as:

Impact

100% of users that will install the ops

Priority

high

Expected outcome

  1. The multiselect component of https://www.npmjs.com/package/@clack/prompts can be used.

Suggested solution

None

giusdp commented 1 month ago

Select is already available (using "type": ["a", "b", "c"]) and multi-select is not really needed, cause the configurator is just used to set single values to keys in the ops config.json. There is no use case for multiple values assigned to a key.

dcremonini commented 2 weeks ago

I reopen this issue because, as discussed with @giusdp, the use case is actually there. I modified the description because the selection of a single option was already possible. The multiselection remains the object of this issue.