8000 task UpdateCBH: Bug fixed in updating Comment Based Help in functions to point to external help by schittli · Pull Request #10 · ModuleBuild/ModuleBuild · GitHub
[go: up one dir, main page]

Skip to content

task UpdateCBH: Bug fixed in updating Comment Based Help in functions to point to external help #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 31, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Small Enhancement: Function Write-Description:
$Description can now contain Newlines / multiple Lines, they are properly indented.
  • Loading branch information
Jehoschua authored and Jehoschua committed Mar 31, 2018
commit 6e61ffe92f83b5891e609fb62e8d26fca198d96b
9 changes: 5 additions & 4 deletions ModuleBuild.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ param (
)

Function Write-Description {
# Basic indented descriptive build output.
param (
# Basic indented descriptive build output. $Description can contain Newlines.
Param (
[string]$color = 'White',
[string]$Description = '',
[int]$Level = 0,
Expand All @@ -22,11 +22,12 @@ Function Write-Description {
)

$thisindent = (' ' * $indent) * $level
if ($accent) {
If ($accent) {
$accentleft = $AccentL
$accentright = $AccentR
}
Write-Build $color "$accentleft$thisindent$Description$accentright"

$Description -split '\r\n|\n' | ForEach-Object { Write-Build $color "$accentleft$thisindent$($_)$accentright" }
}

if (Test-Path $BuildFile) {
Expand Down
0