File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 5252 # Get all exported commands from the module
5353 $commands = $moduleInfo.ExportedCommands.Values | Where-Object { $_.CommandType -ne ' Alias' }
5454
55- Write-Host " ::group::Found $ ( $commands.Count ) commands to process"
56-
55+ Write-Host " ::group::Build docs - Generating markdown help files for $ ( $commands.Count ) commands in [$docsOutputFolder ]"
5756 foreach ($command in $commands ) {
5857 try {
5958 Write-Host " $ ( $command.Name ) " - NoNewline
155154
156155 Write-Host ' ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ'
157156 Get-ChildItem - Path $docsOutputFolder - Recurse - Force - Include ' *.md' | ForEach-Object {
158- $fileName = $_ .Name
159- Write-Host " ::group:: - [$fileName ]"
157+ $relPath = [ System.IO.Path ]::GetRelativePath( $docsOutputFolder , $_ .FullName )
158+ Write-Host " ::group:: - [$relPath ]"
160159 Show-FileContent - Path $_
161160 }
162161}
You canβt perform that action at this time.
0 commit comments