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 option to add null separator to blocks command #24

Closed
gdavison opened this issue Jul 28, 2020 · 0 comments · Fixed by #25
Closed

Add option to add null separator to blocks command #24

gdavison opened this issue Jul 28, 2020 · 0 comments · Fixed by #25

Comments

@gdavison
Copy link
Contributor

To help using terrafmt blocks in toolchains, add the option to use a null separator. This would allow e.g. piping to xargs -0 ...

There doesn't seem to be consistency between existing tools:

  • find uses -print0
  • GNU grep uses -Z, --null
  • sort uses -z, --zero-terminated

I propose using --zero-terminated for the long option and -z for the short option, or possibly -0.

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