Closed
Description
Many related PowerShell cmdlets are designed to operate off of a common datatype in order to support pipelining, e.g.
Get-ChildItem .. | Remove-Item
So Get-ChildItem
outputs a [System.IO.FileInfo]
object and Remove-Item
is designed to populate it's input either from a [System.IO.FileInfo]
object or by explicit named parameter.
The cmdlets in this module should support a similar paradigm, so that related cmdlets can be seamlessly piped to each other, as PowerShell users would expect, e.g.
New-GitHubMilestone ... |
Update-GitHubIssue -Issue 4 -PassThru |
Update-GitHubIssue -Issue 10
In this example, the OwnerName, RepositoryName, and Milestone can be inferred based on the presence of the Milestone object in the pipeline.