Skip to content
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

Add cruft compatibility, read from .cruft.json #755

Open
Tracked by #114
MicaelJarniac opened this issue May 2, 2023 · 1 comment · May be fixed by #756
Open
Tracked by #114

Add cruft compatibility, read from .cruft.json #755

MicaelJarniac opened this issue May 2, 2023 · 1 comment · May be fixed by #756

Comments

@MicaelJarniac
Copy link

https://github.com/cruft/cruft
https://cruft.github.io/cruft/

cruft is, at least for me, mainly to automate updating a project with the latest version of the template used to generate it.

It generates a .cruft.json similar to .cookiecutter.json, with the values of the variables, and some additional data.

It'd be really nice if Retrocookie could also read that file, so as to avoid having to keep both of them in a project.

.cruft.json:

Contents

Note
The template used was from a local folder, not from GitHub, but it works the same.

{
  "template": "/home/micael/projects/cookiecutter-python-project",
  "commit": "a636bfd8d49f9e295dff47de6dd043ee97450e2f",
  "checkout": null,
  "context": {
    "cookiecutter": {
      "full_name": "Author Name",
      "email": "[email protected]",
      ...
      "_template": "/home/micael/projects/cookiecutter-python-project"
    }
  },
  "directory": null
}
MicaelJarniac added a commit to MicaelJarniac/retrocookie that referenced this issue Jun 26, 2023
@MicaelJarniac MicaelJarniac linked a pull request Jun 26, 2023 that will close this issue
3 tasks
@MicaelJarniac
Copy link
Author

I've opened a PR for this at #756.

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 a pull request may close this issue.

1 participant