-
-
Notifications
You must be signed in to change notification settings - Fork 4
Measure Help
James Brundage edited this page Apr 22, 2022
·
4 revisions
Determines the percentage of documentation
Determines the percentage of documentation in a given script
dir -Filter *.ps1 | Measure-HelpGet-Command -Module HelpOut | Measure-HelpMeasure-Help {
# This script has some documentation, and then a bunch of code that literally does nothing
$null = $null # The null equivilancy
$null * 500 # x times nothing is still nothing
$null / 100 # Nothing out of 100
} | Select-Object -ExpandProperty PercentageDocumentedThe path to the file
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[String] |
true | 1 | true (ByPropertyName) |
A PowerShell script block
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[ScriptBlock] |
true | named | true (ByPropertyName) |
The name of the script being measured.
| Type | Requried | Postion | PipelineInput |
|---|---|---|---|
[String] |
false | named | true (ByPropertyName) |
Measure-Help [-FilePath] <String> [<CommonParameters>]Measure-Help -ScriptBlock <ScriptBlock> [-Name <String>] [<CommonParameters>]Adding a footer
Testing if custom sidebar overrides automatic