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.
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
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 | |
main()
Delete irrelevant to Project Type files and optionally do git commit.
Source code in src/cookiecutter_python/hooks/post_gen_project.py
333 334 335 | |
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 | |
post_hook()
Delete irrelevant to Project Type files and optionally do git commit.
Source code in src/cookiecutter_python/hooks/post_gen_project.py
254 255 256 257 258 259 260 261 262 263 264 265 266 | |