Skip to content

Implement a pre_prompt hook that will run before prompts#1950

Merged
ericof merged 4 commits intomainfrom
issue-1948
Sep 29, 2023
Merged

Implement a pre_prompt hook that will run before prompts#1950
ericof merged 4 commits intomainfrom
issue-1948

Conversation

@ericof
Copy link
Copy Markdown
Member

@ericof ericof commented Sep 28, 2023

Summary

This PR implements a new hook, pre_prompt, that will run before any question is presented to the user.

This hook could be used for sanity checks or to rewrite cookiecutter.json to add default values.

Checklist

  • Tests
  • Documentation

Fixes #1948

@ericof ericof added the enhancement This issue/PR relates to a feature request. label Sep 28, 2023
@ericof ericof added this to the 2.4.0 milestone Sep 28, 2023
@ericof ericof requested a review from jensens September 28, 2023 16:49
@github-actions github-actions bot added the documentation This issue/PR relates to or includes documentation. label Sep 28, 2023
@ericof ericof merged commit 0fa6a86 into main Sep 29, 2023
@ericof ericof deleted the issue-1948 branch September 29, 2023 11:43
david-abn pushed a commit to david-abn/cookiecutter that referenced this pull request Oct 4, 2023
jedie added a commit to jedie/manageprojects that referenced this pull request Oct 8, 2023
jedie added a commit to jedie/manageprojects that referenced this pull request Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation This issue/PR relates to or includes documentation. enhancement This issue/PR relates to a feature request.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement a pre_prompt hook that will run before prompts

1 participant