0

This is my cookiecutter.json file:

{
    "day": "1",
    "directory_name": "day-{{ cookiecutter.day }}"
}

Now I only want to be prompted for the day, but not for the directory_name which is derived from it. How do I get that to happen?

The documentation for no_input is less than helpful.

Alper
  • 3,424
  • 4
  • 39
  • 45

1 Answers1

1

The no-input option is general option, allowing you to use all the defaults and skipping the questions overall.

What you need is a private variable

{
    "day": "1",
    "__directory_name": "day-{{ cookiecutter.day }}"
}

wankata
  • 855
  • 4
  • 12