Skip to content

feat: add ValueFromPipelineByPropertyName to Module/Model params (#729)#908

Open
pavankadabala-png wants to merge 1 commit into
d365collaborative:masterfrom
pavankadabala-png:fix/729-pipeline-module-model-params
Open

feat: add ValueFromPipelineByPropertyName to Module/Model params (#729)#908
pavankadabala-png wants to merge 1 commit into
d365collaborative:masterfrom
pavankadabala-png:fix/729-pipeline-module-model-params

Conversation

@pavankadabala-png

Copy link
Copy Markdown
Contributor

Add pipeline input support to 6 cmdlets that were missing it, so they can be chained directly from Get-D365Module or Get-D365Model:

$Module params (pipeline source: Get-D365Module):

  • Invoke-D365ProcessModule: add ValueFromPipelineByPropertyName = $true
  • Get-D365VisualStudioCompilerResult: same + begin/process/end blocks
  • Invoke-D365VisualStudioCompilerResultAnalyzer: same + begin/process/end blocks
  • New-D365CAReport: add ValueFromPipelineByPropertyName to both $Module and $Model (with new ModelName alias so Get-D365Model can bind both)

$Model params (pipeline source: Get-D365Model):

  • Remove-D365Model: add Alias(ModelName) + ValueFromPipelineByPropertyName
    • begin/process/end blocks
  • Get-D365InstalledHotfix: add Alias(ModelName) + ValueFromPipelineByPropertyName

Each updated cmdlet also gets a new .EXAMPLE showing pipeline usage.

Closes #729

…5collaborative#729)

Add pipeline input support to 6 cmdlets that were missing it, so they
can be chained directly from Get-D365Module or Get-D365Model:

$Module params (pipeline source: Get-D365Module):
- Invoke-D365ProcessModule: add ValueFromPipelineByPropertyName = $true
- Get-D365VisualStudioCompilerResult: same + begin/process/end blocks
- Invoke-D365VisualStudioCompilerResultAnalyzer: same + begin/process/end blocks
- New-D365CAReport: add ValueFromPipelineByPropertyName to both $Module
  and $Model (with new ModelName alias so Get-D365Model can bind both)

$Model params (pipeline source: Get-D365Model):
- Remove-D365Model: add Alias(ModelName) + ValueFromPipelineByPropertyName
  + begin/process/end blocks
- Get-D365InstalledHotfix: add Alias(ModelName) + ValueFromPipelineByPropertyName

Each updated cmdlet also gets a new .EXAMPLE showing pipeline usage.

Closes d365collaborative#729
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🚸 All cmdlets with module/model parameters should support ValueFromPipelineByPropertyName and ValueFromPipeline

1 participant