From 47ec40d7370c469a27941a8d89e2ec16788f744a Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Tue, 3 Sep 2024 18:18:09 +0200 Subject: [PATCH] Updated write-help.ps1 --- scripts/write-help.ps1 | 32 ++++++++++---------------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/scripts/write-help.ps1 b/scripts/write-help.ps1 index fa85c319..525280a5 100755 --- a/scripts/write-help.ps1 +++ b/scripts/write-help.ps1 @@ -16,19 +16,20 @@ function Line ([string]$line) { } try { + "" Line "█████████████████████████████████████" Line "█████████████████████████████████████" - Line "████ ▄▄▄▄▄ █▀ █▀▀█▀▀ ▄▄██ ▄▄▄▄▄ ████" + Line "████ ▄▄▄▄▄ █▀ █▀▀█▀▀ ▄▄██ ▄▄▄▄▄ ████ POWERSHELL $($PSVersionTable.PSVersion) $($PSVersionTable.PSEdition) edition" Line "████ █ █ █▀ ▄ █▀ ▀ ▀▄█ █ █ █ ████" - Line "████ █▄▄▄█ █▀█ █▄▀▄▀ ▀ ▄▄█ █▄▄▄█ ████" + Line "████ █▄▄▄█ █▀█ █▄▀▄▀ ▀ ▄▄█ █▄▄▄█ ████ Documentation: https://docs.microsoft.com/en-us/powershell" Line "████▄▄▄▄▄▄▄█▄█▄█ █▄█ █▄▀ █▄▄▄▄▄▄▄████" - Line "████▄▄ ▄█▄▄ ▄█▄▄ █▀ ▀▀▀ ▀▄▀▄█▄▀████" + Line "████▄▄ ▄█▄▄ ▄█▄▄ █▀ ▀▀▀ ▀▄▀▄█▄▀████ Tutorial: https://www.guru99.com/powershell-tutorial.html" Line "████▀▄▄█▀█▄██ ▀ ▄▄▀ █▄█▀ ▀ ▄▀▀█▀█████" - Line "█████ ▄▄█▄▄▀▄ ▀▄▀ ▄▄ ▀ ▀▀▀ ▀▄▄█▀████" + Line "█████ ▄▄█▄▄▀▄ ▀▄▀ ▄▄ ▀ ▀▀▀ ▀▄▄█▀████ FAQ's: https://github.com/fleschutz/PowerShell/blob/main/docs/FAQ.md" Line "████▄ ▀ ▄ ▄▄█ █▀██▄ ██▀▄█▄▄▀▄▄▀█████" - Line "████ ████▄▄ ▄█▄▄▄██ ▀ ▀▀▀▀▄ █▀████" + Line "████ ████▄▄ ▄█▄▄▄██ ▀ ▀▀▀▀▄ █▀████ Cheat Sheet: https://github.com/fleschutz/PowerShell/blob/main/docs/cheat-sheet.md" Line "████ ███▄ ▄▀▀██ ▄█ ▄▄▄█▀ ▄▄ ██▄▀█████" - Line "████▄█▄███▄▄▀▄▄▄▀ ▄▄ ▄▀▄ ▄▄▄ ▀ ████" + Line "████▄█▄███▄▄▀▄▄▄▀ ▄▄ ▄▀▄ ▄▄▄ ▀ ████ NOTE: Use + to open the links in your browser." Line "████ ▄▄▄▄▄ █▄▄▄█▀█▄ ██ █▄█ ▄▄█▀████" Line "████ █ █ █ ▀▄█▄ ▄▄ ▀█ ▄▄▄▄▀ ████" Line "████ █▄▄▄█ █ ██ ▄█▄ ▄▀▀▀ ▄▄ ▄ █████" @@ -36,21 +37,8 @@ try { Line "█████████████████████████████████████" Line "█████████████████████████████████████" "" - Write-Host " 🔷 PowerShell Documentation: " -noNewline - Write-Host "https://docs.microsoft.com/en-us/powershell" -foregroundColor blue - - Write-Host " 🔷 PowerShell Tutorial: " -noNewline - Write-Host "https://www.guru99.com/powershell-tutorial.html" -foregroundColor blue - - Write-Host " 🔷 PowerShell FAQ's: " -noNewline - Write-Host "https://github.com/fleschutz/PowerShell/blob/main/docs/FAQ.md" -foregroundColor blue - - Write-Host " 🔷 PowerShell Cheat Sheet: " -noNewline - Write-Host "https://github.com/fleschutz/PowerShell/blob/main/docs/cheat-sheet.md" -foregroundColor blue - "" - "NOTE: Use + to open the links in your browser." - exit 0 # success + exit 0 # success } catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" - exit 1 + "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + exit 1 }