Using and Mastering Cookiecutter Transcripts
Chapter: Advanced Cookiecutter usage
Lecture: Verbose

Login or purchase this course to watch this video and the rest of the course contents.
0:01 Alright, let's quickly play with verbose mode. We've seen that we're able to run Cookiecutter with no inputs,
0:09 let's try it in verbose mode, it's going to ask some questions, tell me all sorts of stuff like here is some default values we're using,
0:16 we generated this context and this is what we're going to use to start asking these questions, okay, so I'll just go and give it some values,
0:25 let's let it suppose that that's my username, and this is fine, we'll take this as well, and then it does a whole bunch of work,
0:34 let's make this bigger, so it's great, we're searching okay it appears to be that this file is what we're going to use for the project,
0:42 we're going to generate the project from that, we're rendering the directory and then we're making sure that it doesn't exist,
0:49 first we create the directory then we make sure it does exists, right, okay there it goes, and it found no hooks, if there were hooks,
0:55 it would say we're running the pre-generation script, the post-generation script,
0:58 that's what hooks are about, so it's processing all these files that are here, it's transformed requirements to see if anything is there,
1:05 change the README and it checks to see what's binary then it wrote the contents of that, which is cool,
1:10 remember it uses like the summary or whatever of the project that goes there, you could just go through and see all the steps that it's going,
1:17 as it's processing these files and finally there is no post-hooks either, so it didn't run that and we're done.
1:23 Alright, so this verbose mode is really helpful if you need it, especially when you're creating your own templates.

Talk Python's Mastodon Michael Kennedy's Mastodon