mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-10 13:27:41 +02:00
Update the manuals
This commit is contained in:
@ -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."
|
||||
|
Reference in New Issue
Block a user