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

Adding output files deletion functionality #2301

Open
unlimitedbits opened this issue Jan 15, 2025 · 0 comments
Open

Adding output files deletion functionality #2301

unlimitedbits opened this issue Jan 15, 2025 · 0 comments

Comments

@unlimitedbits
Copy link

Hi,

we are considering using gomplate for rendering configurations for infrastructure rollouts (e.g. outputting terraform files).
As we want to support the full lifecycle of such components, it would also be handy if gomplate was able to just delete the output files of a templating step, especially as we are using outputMap and the actual output path for the input templates is different based on the datasources and the target folder potentially also consists of other files.

From our side two options could really help here:

  • Adding a --delete option to the CLI so that gomplate is deleting the output files instead of rendering
  • Adding something like a --dry-run option which prints the paths of all files which would be rendered

Would you consider adding one of those options to gomplate?

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

No branches or pull requests

1 participant