Using and Mastering Cookiecutter Transcripts
Chapter: Advanced Cookiecutter usage
Lecture: Concept: Replay

Login or purchase this course to watch this video and the rest of the course contents.
0:01 So let's look at this replay command as a concept. So I want to come over here and we'll run cookicutter cookicutter-bottle
0:09 if we hit enter it's going to ask us a bunch of questions, right, we've go to hit enter, we've got to fill this out and so on,
0:15 now, it would be nice if we wanted to exactly feed that again and again and again, into this template.
0:21 Like I said, continuous integration, creating your own template, whatever, so that is what this replay is all about, so now we can just say
0:27 --replay hit enter and boom, the same thing comes out and it's exactly as if we had just entered those values before,
0:33 but instead, cookiecutter remembered them and played them back for us. How does it work, well, if you look in your ~/.cookicutter_replay folder,
0:42 so that is either in your home directory on macOS or Linux or similarly home directory in Windows, you'll see right here
0:51 we can pull this cookiecutter-bottle.json and here are all of the values I exactly entered, so that just gets fed
0:59 as a dictionary directly to the template engine.


Talk Python's Mastodon Michael Kennedy's Mastodon