Last active
December 3, 2019 15:32
-
-
Save bergmeister/2a5603f5a139a46a0c5430bdbf985dc3 to your computer and use it in GitHub Desktop.
Autof-Format PowerShell scripts
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
Get-ChildItem -Filter *.ps1 -Recurse | ForEach-Object { Set-Content $_.FullName (Invoke-Formatter (Get-Content $_.FullName -Raw)) -NoNewline } | |
Get-ChildItem -Filter *.psm1 -Recurse | ForEach-Object { Set-Content $_.FullName (Invoke-Formatter (Get-Content $_.FullName -Raw)) -NoNewline } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment