Skip to content

Commit

Permalink
resolve alias
Browse files Browse the repository at this point in the history
  • Loading branch information
ninmonkey committed Nov 16, 2023
1 parent fe52d77 commit 7f344bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions public/Write-ConsoleLabel.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +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
function Write-ConsoleLabel {

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

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


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

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

0 comments on commit 7f344bd

Please sign in to comment.