post_gen_project
Post Cookie Hook: Templated File with jinja2 syntax
Cookiecutter post generation hook script that handles operations after the template project is used to generate a target project.
TO_DELETE_TEXT: str = 'TO_DELETE'
module-attribute
Signature text to identify folders that must be deleted after generation.
get_context()
Get the Context, that was used by the Templating Engine at render time
Source code in src/cookiecutter_python/hooks/post_gen_project.py
42 43 44 45 46 47 | |
git_commit(request)
Commit the staged changes in the generated project.
Source code in src/cookiecutter_python/hooks/post_gen_project.py
237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 | |
main()
Delete irrelevant to Project Type files and optionally do git commit.
Source code in src/cookiecutter_python/hooks/post_gen_project.py
340 341 342 | |
post_file_removal(request)
Preserve only files relevant to Project Type requested to Generate.
Source code in src/cookiecutter_python/hooks/post_gen_project.py
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | |
post_hook()
Delete irrelevant to Project Type files and optionally do git commit.
Source code in src/cookiecutter_python/hooks/post_gen_project.py
261 262 263 264 265 266 267 268 269 270 271 272 273 | |