https://kedro.org/ logo
#questions
Title
# questions
m

marrrcin

06/19/2023, 7:49 AM
[Custom starters] Is there a way to make sure that some of the prompts from starter’s cookiecutter prompts will be actual
bool
? We experience an issue where all values from the interactive prompts are being casted to
str
, which is really inconvenient for `true`/`false` values, because they enforce such syntax:
{%- if <http://cookiecutter.my|cookiecutter.my>_flag != "False" %}
.
d

datajoely

06/19/2023, 9:14 AM
I think we’re reaching the limits of cookiecutter here. I’ve been tracking projects like copier and cruft, longer term there is an initiative to rework this journey too
👍 2
m

marrrcin

06/19/2023, 9:54 AM
If that’s considered, then maybe the prompting mechanism could also be re-worked, because right now when you make a mistake (failing to match validation regex), the whole process exists and you have to type everything again
n

Nok Lam Chan

06/19/2023, 1:00 PM
For that I think we only have one prompt in Kedro new now.
m

marrrcin

06/19/2023, 1:31 PM
Custom starters can have > 1 prompt
👍🏼 1
n

Nok Lam Chan

06/19/2023, 2:25 PM
In that sense I guess the simplest change is to catch the exception and re-prompt for the same input until user input a valid value?
👍 2
3 Views