waypoit debuguing
This commit is contained in:
@@ -13,7 +13,7 @@ param(
|
||||
|
||||
# Auto output file switch (-s / -Save)
|
||||
[Parameter(Mandatory = $false, ParameterSetName = 'Generate')]
|
||||
[Alias('s', 'S')]
|
||||
[Alias('s')]
|
||||
[switch]$Save,
|
||||
|
||||
# File containing checksums to verify (-c / -Check)
|
||||
@@ -50,7 +50,9 @@ param(
|
||||
|
||||
begin {
|
||||
function Show-Help {
|
||||
@'
|
||||
@'
|
||||
Princess Pi's Magical CHECKSUM!
|
||||
|
||||
NAME
|
||||
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>'.
|
||||
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.
|
||||
Overrides the auto-naming behavior of -s if both are passed.
|
||||
|
||||
@@ -95,11 +97,12 @@ PARAMETERS
|
||||
-r, -R, -Recursive <switch>
|
||||
Processes target files or verification files recursively across directory structures.
|
||||
|
||||
-pp, -PrincessPi <switch>
|
||||
Displays Princess Pi ASCII art in magenta.
|
||||
-pp, -PP, -PrincessPi <switch>
|
||||
Displays Princess Pi!
|
||||
|
||||
-h, -H, -Help <switch>
|
||||
Displays this help documentation.
|
||||
Also displays on any error.
|
||||
|
||||
EXAMPLES
|
||||
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:
|
||||
.\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;
|
||||
};
|
||||
@@ -201,10 +208,6 @@ EXAMPLES
|
||||
|
||||
function Invoke-ParallelHashing {
|
||||
param([array]$Items, [string]$Algorithm);
|
||||
|
||||
$total = $Items.Count
|
||||
$completed = 0
|
||||
$syncHash = [System.Collections.Hashtable]::Synchronized(@{ Count = 0 })
|
||||
|
||||
$Items | ForEach-Object -Parallel {
|
||||
$item = $_
|
||||
|
||||
Reference in New Issue
Block a user