Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support more literal types (such as lists) as values for the option argument #410

Open
3 tasks done
midas0441 opened this issue Sep 7, 2024 · 2 comments
Open
3 tasks done
Labels
feature request New feature or request

Comments

@midas0441
Copy link

midas0441 commented Sep 7, 2024

Please fill out these Check-boxes

  • I checked for existing similar feature requests
  • I have read the docs and checked that the feature I am requesting is not already implemented
  • My feature request consists of only one feature

Is your Feature Request related to a Problem or Annoyance?

No response

Describe the Feature you'd like

I would like to provide lists ([item1, item2, item3]) as an option. I tried to use option('[item1, item2, item3]'), but the YAML variable is assigned the value "[item1, item2, item3]". I don't want the double-quotes. I'd like the list [item1, item2, item3] to be assigned to the YAML variable. I'm aware of multiSelect but for a variety of reasons, I don't want to build the list by selecting items 1, 2 and 3 individually from a list of options. One reason is that another option is [item3, item4] and another is [item1, item3]. So you see, I have pre-defined lists that I'd like to provide as options to choose from.

Alternatives

No response

Additional Context

No response

@midas0441 midas0441 added the feature request New feature or request label Sep 7, 2024
@midas0441 midas0441 changed the title providing lists as options is it possible to provide lists as options? Sep 7, 2024
@mProjectsCode
Copy link
Owner

Currently, that is not possible. The only data types supported are string | number | boolean | null

@midas0441
Copy link
Author

midas0441 commented Sep 9, 2024

Hope this can be extended someday to other types, particularly lists.

@mProjectsCode mProjectsCode changed the title is it possible to provide lists as options? Support more literal types (such as lists) as values for the option argument Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants