waypoit debuguing

This commit is contained in:
2026-09-25 16:33:58 -06:00
parent 503e947eaf
commit 2fd8238a98
+12 -9
View File
@@ -13,7 +13,7 @@ param(
# Auto output file switch (-s / -Save) # Auto output file switch (-s / -Save)
[Parameter(Mandatory = $false, ParameterSetName = 'Generate')] [Parameter(Mandatory = $false, ParameterSetName = 'Generate')]
[Alias('s', 'S')] [Alias('s')]
[switch]$Save, [switch]$Save,
# File containing checksums to verify (-c / -Check) # File containing checksums to verify (-c / -Check)
@@ -51,6 +51,8 @@ param(
begin { begin {
function Show-Help { function Show-Help {
@' @'
Princess Pi's Magical CHECKSUM!
NAME NAME
checksum - Compute and verify message digests / file checksums checksum - Compute and verify message digests / file checksums
@@ -76,7 +78,7 @@ PARAMETERS
- If input filename does NOT contain a wildcard, saves to '<filename>.<algo>'. - If input filename does NOT contain a wildcard, saves to '<filename>.<algo>'.
When combined with -r and *, recursively auto-generates checksums per directory. When combined with -r and *, recursively auto-generates checksums per directory.
-f, -F, -OutFile, -of, -OF <string> -f, -F, -of, -OF, -OutFile <string>
Saves checksum results to a specific custom filename. Saves checksum results to a specific custom filename.
Overrides the auto-naming behavior of -s if both are passed. Overrides the auto-naming behavior of -s if both are passed.
@@ -95,11 +97,12 @@ PARAMETERS
-r, -R, -Recursive <switch> -r, -R, -Recursive <switch>
Processes target files or verification files recursively across directory structures. Processes target files or verification files recursively across directory structures.
-pp, -PrincessPi <switch> -pp, -PP, -PrincessPi <switch>
Displays Princess Pi ASCII art in magenta. Displays Princess Pi!
-h, -H, -Help <switch> -h, -H, -Help <switch>
Displays this help documentation. Displays this help documentation.
Also displays on any error.
EXAMPLES EXAMPLES
1. Compute SHA256 for a single file and auto-save as 'myfile.iso.sha256': 1. Compute SHA256 for a single file and auto-save as 'myfile.iso.sha256':
@@ -116,6 +119,8 @@ EXAMPLES
5. Compare file directly against an expected hash string: 5. Compare file directly against an expected hash string:
.\checksum.ps1 myfile.bin -m 406653a68bd3538975656831f33f031b .\checksum.ps1 myfile.bin -m 406653a68bd3538975656831f33f031b
Priness Pi LOVES YOU!~
'@ '@
}; };
@@ -168,7 +173,7 @@ EXAMPLES
..:----==------:..-.... ..--------:...:---------------.....:----------=+-..... ..:----==------:..-.... ..--------:...:---------------.....:----------=+-.....
..------==+=++==-..+--:. .:--------.....-----------=*%=.. ..----------=+=...... ..------==+=++==-..+--:. .:--------.....-----------=*%=.. ..----------=+=......
....------------........:... ..:--------.....-------+#%%#@%.. ...----------=+=...... ....------------........:... ..:--------.....-------+#%%#@%.. ...----------=+=......
..---------===:............... .:----=+*#=. ..--+#**+%@@@#%+. ..:-:..=----=*=:..... ..---------===:............... .:----=+*#=. ..--+#**+%@@@#%+. ..:-:..=----=*=*=:.....
:............:=::+=:--:=.=-.::=... ..*@*-+%@@@:.....-@@#%@*#@@@#%:.. ..-:..---:-#**+-......... :............:=::+=:--:=.=-.::=... ..*@*-+%@@@:.....-@@#%@*#@@@#%:.. ..-:..---:-#**+-.........
.. ...::::....::-.:.::-.. ..*%:..*@@@*.. ..-%#%@@+%@@@@=.. ...::.=#=..-%*++=:... ... .. ...::::....::-.:.::-.. ..*%:..*@@@*.. ..-%#%@@+%@@@@=.. ...::.=#=..-%*++=:... ...
...... .......... ..**...*#=*%:. .--*#@%+#%@@@@+... ..*%@%+...+%+=*+=-... ...... .......... ..**...*#=*%:. .--*#@%+#%@@@@+... ..*%@%+...+%+=*+=-...
@@ -179,6 +184,8 @@ EXAMPLES
.:*#:..:*@@@%:. .--%@*%@#*%*#=..-%-....:+#=-.:#%-.:+-....... .:*#:..:*@@@%:. .--%@*%@#*%*#=..-%-....:+#=-.:#%-.:+-.......
.+@#=.-*@@@@*.. ....-%@@@@@@=..+%*.. .--%--=+#%-.:*-. .... .+@#=.-*@@@@*.. ....-%@@@@@@=..+%*.. .--%--=+#%-.:*-. ....
.-=++++++++=... .:***+++==::::... .-%#=-*#%#**#-. .-=++++++++=... .:***+++==::::... .-%#=-*#%#**#-.
Princess Pi
https://linktr.ee/princesspi3
'@ '@
Write-Host $art -ForegroundColor Magenta; Write-Host $art -ForegroundColor Magenta;
}; };
@@ -202,10 +209,6 @@ EXAMPLES
function Invoke-ParallelHashing { function Invoke-ParallelHashing {
param([array]$Items, [string]$Algorithm); param([array]$Items, [string]$Algorithm);
$total = $Items.Count
$completed = 0
$syncHash = [System.Collections.Hashtable]::Synchronized(@{ Count = 0 })
$Items | ForEach-Object -Parallel { $Items | ForEach-Object -Parallel {
$item = $_ $item = $_
$algo = $using:Algorithm $algo = $using:Algorithm