cookiecutter / cookiecutter/cookiecutter
--replay and --noinput combination should work
- Dominant language
- Python
- Stars
- 25.1k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
* Cookiecutter version: 1.7.2
* Python version: 3.5
* Operating System: Ubuntu 16.04
### Description:
I'm trying to use the Cookiecutter to generate some files during a build pipeline, but I'm stuck with the message "Is it okay to delete and re-download". Is it possible to use `--replay` and skip this message?
### What I've run:
```bash
\cp -v ./my-project.json ~/.cookiecutter_replay/my-project.json
cookiecutter \
--replay \
--overwrite-if-exists \
--output-dir "/tmp/" \
--checkout "${Cookiecutter_Version}" \
git_url
```
### Output
```text
You've downloaded /home/cookiecutter/.cookiecutters/my-project before. Is it okay to delete and re-download it? [yes]:
```
Thanks,
Contributor guide
Research direction
Start at the cookiecutter command-line entry point and reproduce the documented --replay invocation together with --noinput, using the replay file at ~/.cookiecutter_replay/my-project.json. Done means the combined options run without the "Is it okay to delete and re-download" prompt while preserving the requested replay behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100