Update the manuals

This commit is contained in:
Markus Fleschutz
2021-10-06 11:17:09 +02:00
parent e1efe61eaa
commit 98c305e8f3
263 changed files with 3 additions and 977 deletions

View File

@ -66,24 +66,20 @@ try {
"$Description"
}
""
"## Parameters"
"``````powershell"
$Syntax = (($full.syntax | Out-String) -replace "`r`n", "`r`n`r`n").Trim()
$Syntax = (($Syntax | Out-String) -replace "/home/markus/Repos/PowerShell/Scripts/", "")
if ($Syntax -ne "") {
""
"## Parameters"
"``````powershell"
"$Syntax"
"``````"
}
foreach($parameter in $full.parameters.parameter) {
""
"``````"
"$(((($parameter | Out-String).Trim() -split "`r`n")[-5..-1] | % { $_.Trim() }) -join "`r`n")"
"``````"
}
""
"``````"
"[<CommonParameters>]"
" This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, "
" WarningVariable, OutBuffer, PipelineVariable, and OutVariable."