Skip to content

Commit

Permalink
fix: remove cmd prefix because that externally invokes the function
Browse files Browse the repository at this point in the history
  • Loading branch information
ninmonkey committed Nov 21, 2023
1 parent b2789af commit 251fc3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/Write-ConsoleLabel.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# New-Alias 'Label' -Value 'Write-NinLabel' -Description 'visual break using colors' -ErrorAction Ignore

# Set-Alias 'Br' -Value 'Ninmonkey.Console\Write-ConsoleNewline' -Description 'Line breaks' -PassThru | Join-String
# Set-Alias 'Br' -Value 'Write-ConsoleNewline' -Description 'Line breaks' -PassThru | Join-String
function Write-ConsoleLabel {

<#
Expand Down Expand Up @@ -184,7 +184,7 @@ function Write-ConsoleLabel {
# '' * $LinesBefore
# }

Ninmonkey.Console\Write-ConsoleNewline -Count $LinesBefore
Write-ConsoleNewline -Count $LinesBefore


# tofix: It's actually type object unless no property param
Expand All @@ -208,7 +208,7 @@ function Write-ConsoleLabel {
$strText = New-Text @newTextSplat_Text
$FullString = $StrLabel, $Separator, $StrText | Join-String -Sep ''
$FullString
Ninmonkey.Console\Write-ConsoleNewline -Count $LinesAfter
Write-ConsoleNewline -Count $LinesAfter

# if ($LinesAfter -gt 0) {
# "`n" * $LinesAfter
Expand Down

0 comments on commit 251fc3e

Please sign in to comment.