Removal and uncomment directive - LaurentDardenne/Template GitHub Wiki
The REMOVE directive must added to the end of a line.
The UNCOMMENT directive must added to the beginning of a line :
#<%UNCOMMENT%>[FunctionalType('PathFile')]
...
Write-Debug 'Test' #<%REMOVE%>
This statements transform the previous lines
Get-Content -Path '.\Test.ps1' -ReadCount 0|
Edit-Template -Remove -UnComment
to :
[FunctionalType('PathFile')]
...