Repository navigation
Using enum with ref. #2795
|
I'm more looking for a clarification. So by using the new I would expect to What I get is a prompt for me to type the item I want. (I understand that after I submit it will validate against the enum that's making the reference to the list) What I was looking for is getting the selector. That is, creating a "dynamic enum" that will render the selector just like the static enum. So I'm guessing this is intended and by design. (if not we could move this to Issues) Demo: tasks:
example-enum:
desc: Use enum
requires:
vars:
- name: CHOSEN_ITEM
enum: [a, b, c]
cmds:
- echo {{.CHOSEN_ITEM}}
example-enum-with-ref:
desc: Use enum with ref to a list
vars:
LIST: [a, b, c]
requires:
vars:
- name: CHOSEN_ITEM
enum: { ref: .LIST }
cmds:
- echo {{.CHOSEN_ITEM}}Running Running |
Answered by
douglasmiranda
Nov 19, 2026
Replies: 3 comments
0 replies
This comment was marked as spam.
This comment was marked as spam.
|
@wesomitsu answered, but the comment is marked as spam, I don't know why. They fixed: #2927 |
0 replies
Answer selected by
douglasmiranda
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@wesomitsu answered, but the comment is marked as spam, I don't know why.
They fixed: #2927