Last active
September 7, 2023 19:09
-
-
Save nedix/1837e5f99989fe0fa76228e89b1a272a to your computer and use it in GitHub Desktop.
Kubernetes neat on all files in the current directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
find . -type f -print0 | xargs -0 -I {} sh -c 'OUTPUT=$(kubectl neat -f {}); echo "$OUTPUT" > {}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment