FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix 'Accept pipeline input' properties in documentation of Invoke-Formatter by bergmeister · Pull Request #1833 · PowerShell/PSScriptAnalyzer · GitHub

Fix 'Accept pipeline input' properties in documentation of Invoke-Formatter - #1833

Merged
James Truher (JamesWTruher) merged 1 commit into
PowerShell:masterfrom
bergmeister:invoke-formatter-pipelinedocs
Aug 30, 2022
Merged

Fix 'Accept pipeline input' properties in documentation of Invoke-Formatter#1833
James Truher (JamesWTruher) merged 1 commit into
PowerShell:masterfrom
bergmeister:invoke-formatter-pipelinedocs

Conversation

Christoph Bergmeister (bergmeister) commented Aug 27, 2022
edited
Loading

Copy link
Copy Markdown
Collaborator

PR Summary

PR #1763 made Invoke-Formatter accept pipeline input but tests didn't catch that cmdlet docs weren't updated. This fixes the docs and adds tests for pipeline input. Since that pull request hasn't been released yet, no need to update Microsoft docs.

PR Checklist

Sean Wheeler (sdwheeler) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

foreach($parameterAttribute in $parameter.Attributes) {
if ($parameterAttribute.ValueFromPipeline -eq $null) { continue }

$parameterHelpPipelineInput = if ($parameterHelp.pipelineInput -eq 'True (ByPropertyName, ByValue)') {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

is the string format of this going to be consistent

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

yes and if not the test will fail anyway :-)

James Truher (JamesWTruher) merged commit fcead29 into PowerShell:master Aug 30, 2022
This file contains hidden or 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL