@@ -24,15 +24,15 @@ function New-AsBuiltConfig {
2424 # Run section to prompt user for information about the As Built Report to be exported to JSON format (if saved)
2525 $global :Config = @ { }
2626
27- Initialize-ReportLocalization - RootPath (Split-Path (Split-Path $PSScriptRoot - Parent) - Parent) - LanguageFile ' New-AsBuiltConfig'
27+ Initialize-SessionLocalization - ScriptRoot (Split-Path (Split-Path $PSScriptRoot - Parent) - Parent) - LanguageFile ' New-AsBuiltConfig'
2828
2929 }
3030
3131 process {
3232 # region Report configuration
3333 Clear-Host
3434 # Show As Built Report configuration banner
35- Draw- AsciiBox - Lines @ ($translate.ReportInfo.BannerTitle ) - ExtraPadding 4 - TextColor ' Cyan' - BorderColor ' Cyan'
35+ Draw- AsciiBanner - Lines @ ($translate.ReportInfo.BannerTitle ) - ExtraPadding 4 - TextColor ' Cyan' - BorderColor ' Cyan'
3636
3737 $ReportAuthor = Read-Host - Prompt ($translate.ReportInfo.ReportAuthor -f [System.Environment ]::Username)
3838 if (($ReportAuthor -like $null ) -or ($ReportAuthor -eq " " )) {
@@ -47,7 +47,7 @@ function New-AsBuiltConfig {
4747 # region Company configuration
4848 Clear-Host
4949 # Show Company configuration banner
50- Draw- AsciiBox - Lines @ ($translate.CompanyConfig.BannerTitle ) - ExtraPadding 4 - TextColor ' Cyan' - BorderColor ' Cyan'
50+ Draw- AsciiBanner - Lines @ ($translate.CompanyConfig.BannerTitle ) - ExtraPadding 4 - TextColor ' Cyan' - BorderColor ' Cyan'
5151
5252 $CompanyInfo = Read-Host - Prompt $translate.CompanyConfig.CompanyInfo
5353 while (" y" , " n" -notcontains $CompanyInfo ) {
@@ -92,7 +92,7 @@ function New-AsBuiltConfig {
9292 # region Email configuration
9393 Clear-Host
9494 # Show Email configuration banner
95- Draw- AsciiBox - Lines @ ($translate.EmailConfig.BannerTitle ) - ExtraPadding 4 - TextColor ' Cyan' - BorderColor ' Cyan'
95+ Draw- AsciiBanner - Lines @ ($translate.EmailConfig.BannerTitle ) - ExtraPadding 4 - TextColor ' Cyan' - BorderColor ' Cyan'
9696 if (-not ($SendEmail )) {
9797 $ConfigureMailSettings = Read-Host - Prompt $translate.EmailConfig.ConfigureMailSettings
9898 while (" y" , " n" -notcontains $ConfigureMailSettings ) {
@@ -266,7 +266,7 @@ function New-AsBuiltConfig {
266266 if ($Report -and (-not $ReportConfigFilePath )) {
267267 Clear-Host
268268 # Show Rerport configuration banner
269- Draw- AsciiBox - Lines @ ($translate.ReportConfig.BannerTitle ) - ExtraPadding 4 - TextColor ' Cyan' - BorderColor ' Cyan'
269+ Draw- AsciiBanner - Lines @ ($translate.ReportConfig.BannerTitle ) - ExtraPadding 4 - TextColor ' Cyan' - BorderColor ' Cyan'
270270 $ReportConfigFolder = Read-Host - Prompt ($translate.ReportConfig.ReportConfigFolder -f $Home + $DirectorySeparatorChar + " AsBuiltReport" )
271271 if (($ReportConfigFolder -like $null ) -or ($ReportConfigFolder -eq " " )) {
272272 $ReportConfigFolder = $Home + $DirectorySeparatorChar + " AsBuiltReport"
@@ -321,7 +321,7 @@ function New-AsBuiltConfig {
321321
322322 # region Save configuration
323323 Clear-Host
324- Draw- AsciiBox - Lines @ ($translate.ReportConfig.BannerTitle ) - ExtraPadding 4 - TextColor ' Cyan' - BorderColor ' Cyan'
324+ Draw- AsciiBanner - Lines @ ($translate.ReportConfig.BannerTitle ) - ExtraPadding 4 - TextColor ' Cyan' - BorderColor ' Cyan'
325325 $SaveAsBuiltConfig = Read-Host - Prompt $translate.ReportConfig.SaveAsBuiltConfig
326326 while (" y" , " n" -notcontains $SaveAsBuiltConfig ) {
327327 $SaveAsBuiltConfig = Read-Host - Prompt $translate.ReportConfig.SaveAsBuiltConfig
0 commit comments