Using and Mastering Cookiecutter Transcripts
Chapter: Advanced Cookiecutter usage
Lecture: Extra defaults

Login or purchase this course to watch this video and the rest of the course contents.
0:01 Let me show you how you can add occasional extra defaults, so this default file this is a default forever, you will always have all of those defaults,
0:11 now, it might be that you want to run this, from the command line and for some reason, you want to set the app name to something else.
0:18 So let's try this, if we go over here and just say app_name= and we just use key=value, and we say app_name=the_bottle
0:28 and let's also say project_name="The Bottle" like this, now if we run it, we'll see that we get the defaults from our default file,
0:36 Michael Kennedy, email, GitHub and now, project_name default is "The Bottle", instead of "My Bottle App", app name is the_bottle, right,
0:44 so if you're going to try to automate this stuff, this is really nice and maybe even you want to give it a no inputs at this point.
0:51 Alright, so here we could do this, and we could of course say --no-input and even a -f And boom, there it goes, so now we have "The Bottle",
1:05 and we actually created it twice, first when I hit enter a bunch of times, the second one when I just ran that one command line.

Talk Python's Mastodon Michael Kennedy's Mastodon