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

Output diff feature #10

Closed
jonvmey opened this issue Jun 20, 2020 · 0 comments · Fixed by #11
Closed

Output diff feature #10

jonvmey opened this issue Jun 20, 2020 · 0 comments · Fixed by #11

Comments

@jonvmey
Copy link
Contributor

jonvmey commented Jun 20, 2020

I think that having an output diff/dry-run option would be a useful addition. Basically you could do a dry-run of the templater and display a diff between the output of the current rules and source files and the existing contents of the destination files (if they exist) without actually overwriting the destination files. This would be useful for verifying that existing files won't accidentally be blown away by running the templater as well as detecting any local modifications in the destination files that should be back-annotated into the rules and source files.

I'd be happy to work on implementing this or some variation of it if you think it's a good idea.

@jonvmey jonvmey mentioned this issue Jul 14, 2020
kesslern pushed a commit that referenced this issue Jul 15, 2020

Verified

This commit was signed with the committer’s verified signature.
TarikGul Tarik Gul
Closes #10
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