-
-
Notifications
You must be signed in to change notification settings - Fork 4
Get ScriptStory
James Brundage edited this page Apr 22, 2022
·
5 revisions
Gets a Script's story
Gets the Script's "Story"
Script Stories are a simple markdown summary of all single-line comments within a script (aside from those in the param block).
Get-Command Get-ScriptStory | Get-ScriptStory
A script block
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[ScriptBlock] |
true | 1 | true (ByValue) |
A block of text
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[String] |
true | 1 | true (ByValue, ByPropertyName) |
The friendly names of code regions or begin,process, or end blocks.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[IDictionary] |
false | named | false |
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[Int32] |
false | named | false |
Get-ScriptStory [-ScriptBlock] <ScriptBlock> [-RegionName <IDictionary>] [-HeadingSize <Int32>] [<CommonParameters>]
Get-ScriptStory [-Text] <String> [-RegionName <IDictionary>] [-HeadingSize <Int32>] [<CommonParameters>]
Adding a footer
Testing if custom sidebar overrides automatic