Updated the manuals

This commit is contained in:
Markus Fleschutz
2025-05-12 22:04:02 +02:00
parent b3cdf19f4a
commit 09eb3d1808
651 changed files with 8362 additions and 1405 deletions

View File

@ -15,6 +15,7 @@ Parameters
Position? 1
Default value "$PWD"
Accept pipeline input? false
Aliases
Accept wildcard characters? false
[<CommonParameters>]
@ -70,7 +71,7 @@ try {
Write-Host "⏳ (1) Searching for Git executable...`t`t" -NoNewline
& git --version
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
if ($lastExitCode -ne 0) { throw "Can't execute 'git' - make sure Git is installed and available" }
Write-Host "⏳ (2) Checking parent folder...`t`t" -NoNewline
if (-not(Test-Path "$parentDir" -pathType container)) { throw "Can't access folder: $parentDir" }
@ -80,24 +81,24 @@ try {
Write-Host "$numFolders subfolders"
[int]$step = 3
[int]$failed = 0
[int]$numFailed = 0
foreach ($folder in $folders) {
$folderName = (Get-Item "$folder").Name
Write-Host "⏳ ($step/$($numFolders + 2)) Pulling into 📂$folderName...`t`t" -NoNewline
& git -C "$folder" pull --recurse-submodules --jobs=4
if ($lastExitCode -ne "0") { $failed++; write-warning "'git pull' in 📂$folderName failed" }
if ($lastExitCode -ne 0) { $numFailed++; Write-Warning "'git pull' in 📂$folderName failed" }
& git -C "$folder" submodule update --init --recursive
if ($lastExitCode -ne "0") { throw "'git submodule update' in 📂$folder failed with exit code $lastExitCode" }
if ($lastExitCode -ne 0) { $numFailed++; Write-Warning "'git submodule update' in 📂$folderName failed with exit code $lastExitCode" }
$step++
}
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
if ($failed -eq 0) {
"✅ Pulled into $numFolders repos at 📂$parentDir in $($elapsed)s."
if ($numFailed -eq 0) {
"✅ Pulled into $numFolders Git repos at 📂$parentDir in $($elapsed)s."
exit 0 # success
} else {
"⚠️ Pulled into $numFolders repos at 📂$parentDir in $($elapsed)s but $failed failed!"
"⚠️ Pulled into $numFolders Git repos at 📂$parentDir but $numFailed failed (took $($elapsed)s)!"
exit 1
}
} catch {
@ -106,4 +107,4 @@ try {
}
```
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:24)*
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:58)*