Closed Firebird1029 closed 2 months ago
Note to future self: We will also have to add the hooks directory with post_gen_project.py
to Tiers 3 + 4 as well!
Merging in now. Will switch to enums later if the cookiecutter values get more complicated than booleans
Fix boolean type bug in cookiecutter Tier 0-2 hook
Problem
In tiers 0, 1, and 2, when being asked the following:
Selecting false proceeds to be true anyway, because in the hook, the Python variable is actually a string and so the truthy value of "False" is True.
Solution
I changed
if CREATE_REPO:
toif CREATE_REPO == "True":
.Result
Now, selecting False for those two prompts will not proceed to run the hook functions as unintended.