8000 Add accept hooks option by stefan-jaeger · Pull Request #335 · cruft/cruft · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add accept hooks option #335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stefan-jaeger
Copy link
@stefan-jaeger stefan-jaeger commented Feb 22, 2025

Feature

Allow usage of cookiecutters accept_hooks option

Description

Added accept hooks option like in cookiecutter.
The used option is persisted in the cruft state as well to be used as an default for further actions.
This is especially helpful when diffing or upgrading projects that are based on templates with not replayable pre/post hooks.

Changes in this PR

  • Added accept_hooks option to create, update and diff task
  • Link task uses a default of True for the accept_hooks option
  • The used accept_hooks value is persisted in the cruft state up on create and update tasks

Linked Issues

Closes #199
Closes #334

@stefan-jaeger stefan-jaeger changed the title Add accept hook variable (#199) Add accept hook option (#199) Feb 22, 2025
@stefan-jaeger stefan-jaeger force-pushed the issue/199 branch 2 times, most recently from cf95383 to 85943e6 Compare February 22, 2025 14:20
* Added accept_hooks option to create, update and diff command

* Added accept_hooks field to cruft state
@stefan-jaeger stefan-jaeger changed the title Add accept hook option (#199) Add accept hooks option (#199) Feb 22, 2025
@stefan-jaeger stefan-jaeger changed the title Add accept hooks option (#199) Add accept hooks option Feb 22, 2025
@stefan-jaeger stefan-jaeger reopened this Mar 8, 2025
@eiriklid
Copy link

@sambhav, @timothycrosley, who would be best suited to review this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an option to disable cookiecutter hooks Cruf shouldn't run the post_gen_hook on update
2 participants
0