-
Notifications
You must be signed in to change notification settings - Fork 0
feat: ✨ add post-copy commands to run #101
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some suggestions 💡 :
copier.yaml
Outdated
# Post-copy commands: | ||
_tasks: | ||
# Only run these commands when copying the template | ||
- command: "git init" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing that you can't turn this around to when "{{ _copier_operation == 'copy' }}", then run all commands?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't see a way that I could run multiple commands. I guess I could use something like &&
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One suggestion, but I approve 👍
Co-authored-by: martonvago <57952344+martonvago@users.noreply.github.com>
Description
These changes add some commands to run right after copying from the template.
Closes #95
This PR needs a quick review.
Checklist
just run-all