Skip to content

Commit bbc05eb

Browse files
author
James Brundage
committed
Adding PipeScript.HelpOut (#24)
1 parent 945b24d commit bbc05eb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

PipeScript.HelpOut.ps1

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#require -Module HelpOut
2+
Push-Location $PSScriptRoot
3+
4+
$PipeScriptLoaded = Get-Module PipeScript
5+
if (-not $PipeScriptLoaded) {
6+
$PipeScriptLoaded = Get-ChildItem -Recurse -Filter "*.psd1" | Where-Object Name -like 'PipeScript*' | Import-Module -Name { $_.FullName } -Force -PassThru
7+
}
8+
if ($PipeScriptLoaded) {
9+
"::notice title=ModuleLoaded::PipeScript Loaded" | Out-Host
10+
} else {
11+
"::error:: PipeScript not loaded" |Out-Host
12+
}
13+
14+
Save-MarkdownHelp -Module PipeScript -OutputPath $wikiPath -ScriptPath 'Transpilers' -ReplaceScriptName '\.psx\.ps1$' -ReplaceScriptNameWith "-Transpiler" -SkipCommandType Alias -PassThru -IncludeTopic *.help.txt -IncludeExtension @() |
15+
Add-Member -Name CommitMessage -MemberType ScriptProperty -value { "Updating $($this.Name) [skip ci]" } -Force -PassThru
16+
17+
Pop-Location

0 commit comments

Comments
 (0)