iainbrighton / PScribo

PowerShell documentation framework
MIT License
232 stars 35 forks source link

Implement the -PassThru parameters for OutHtml, OutText, Out - an enhancement proposal #25

Closed it-praktyk closed 7 years ago

it-praktyk commented 8 years ago

Currently if the files are written to disk objects what contain references to the new created files are returned.

The command used for that is

Write-Output 

in the files/lines like below

https://github.com/iainbrighton/PScribo/blob/dev/Src/Plugins/OutHtml.ps1#L74

https://github.com/iainbrighton/PScribo/blob/dev/Src/Plugins/OutText.ps1#L67

https://github.com/iainbrighton/PScribo/blob/dev/Src/Plugins/OutWord.ps1#L133

My proposal is to implement the PassThru parameter what can be used if that kind of reference object need to be returned. If not any output will not be returned.

iainbrighton commented 8 years ago

@it-praktyk Sounds OK to me 👍

it-praktyk commented 8 years ago

I'll try implement it.