Scripted or dynamic choices #1025
Unanswered
sgarfinkel
asked this question in
Q&A
Replies: 1 comment
-
You'd need some jinja extension to do that.
El lun, 6 mar 2023, 16:54, Sam Garfinkel ***@***.***>
escribió:
… I would like to retrieve choices for allowing users to select a field from
and LDAP server. Is there anyway to get choices from a script?
I did a little testing and I can see that there’s no way to pass a jinja
template as the top-level choices, since a string is an invalid element for
choices.
The only hacky way I can think of doing this would be to emit a yaml file
with the question that gets included in the base copier.yaml but this
would require some way to run a task *before* prompting, which as far as
I know is not possible.
—
Reply to this email directly, view it on GitHub
<#1025>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHNXDN7QGXKEJM2UPQWDNTW2YJFDANCNFSM6AAAAAAVRL7HZA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to retrieve choices for allowing users to select a field from and LDAP server. Is there anyway to get choices from a script?
I did a little testing and I can see that there’s no way to pass a jinja template as the top-level choices, since a string is an invalid element for choices.
The only hacky way I can think of doing this would be to emit a yaml file with the question that gets included in the base
copier.yaml
but this would require some way to run a task before prompting, which as far as I know is not possible.Beta Was this translation helpful? Give feedback.
All reactions