Curated Examples
Example.Removecomments.Ps1
Source-owned example maintained with PSPublishModule.
- Source repository: https://github.com/EvotecIT/PSPublishModule
Import-Module .\PSPublishModule.psd1 -Force
$removeCommentsSplat = @{
SourceFilePath = 'C:\Users\przemyslaw.klys\OneDrive - Evotec Services sp. z o.o\Documents\PowerShell\Modules\PSWriteHTML\PSWriteHTML.psm1'
DestinationFilePath = 'C:\Support\GitHub\PSPublishModule\Examples\TestScript1.ps1'
}
#Remove-Comments @removeCommentsSplat -RemoveCommentsInParamBlock -RemoveAllEmptyLines -RemoveCommentsBeforeParamBlock
$removeCommentsSplat = @{
SourceFilePath = 'C:\Support\GitHub\PSPublishModule\Examples\TestScript.ps1'
DestinationFilePath = 'C:\Support\GitHub\PSPublishModule\Examples\TestScript1.ps1'
# RemoveAllEmptyLines = $true
RemoveEmptyLines = $true
RemoveCommentsInParamBlock = $false
RemoveCommentsBeforeParamBlock = $false
}
Remove-Comments @removeCommentsSplat