Add -PassThru Parameter to Export Cmdlets
Closed this issue · 0 comments
webtonize commented
As an end-user I want to be able to inspect my Azure DevOps environment without exporting the configuration as files stored on a disk. Therefore I want the Export-
cmdlets to have an option to pass the AzDo objects to the pipeline instead of exporting as json files so I can rest assured no sensitive information is left lingering on disks available to others.
Acceptance crtiteria
- All
Export-
cmdlets (including those internal to the module) have a-PassThru
parameter to outputPSObject
s to the pipeline. -PassThru
parameter is tested in CI with a Pester test passing the output toInvoke-PSRule
.-PassThru
parameter is mutually exclusive with the-OutputPath
parameter.- Parameter is built in way that allows it to easily be made the default export option in future releases of the module.