PSScriptAnalyzer icon indicating copy to clipboard operation
PSScriptAnalyzer copied to clipboard

Allow Invoke-Formatter to be pipable

Open AnderssonPeter opened this issue 4 years ago • 0 comments

Summary of the new feature

A clear and concise description of what the problem is that the new feature would solve. Hi I have some powershell code in a variable, it would be usefull if I could run $code | Invoke-Formatter, this does not seem to work instead I have to run Invoke-Formatter $code.

What is the latest version of PSScriptAnalyzer at the point of writing I am using 1.20.0 of PSScriptAnalyzer on Windows 10 using pwsh 7.1

AnderssonPeter avatar Jan 17 '22 11:01 AnderssonPeter