mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-14 23:02:41 +02:00
Updated the manuals
This commit is contained in:
@ -6,7 +6,7 @@ This PowerShell script pulls updates into all Git repositories in a folder (incl
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
/home/markus/Repos/PowerShell/scripts/pull-repos.ps1 [[-parentDir] <String>] [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/pull-repos.ps1 [[-parentDir] <String>] [<CommonParameters>]
|
||||
|
||||
-parentDir <String>
|
||||
Specifies the path to the parent folder
|
||||
@ -28,7 +28,7 @@ Example
|
||||
PS> ./pull-repos C:\MyRepos
|
||||
⏳ (1) Searching for Git executable... git version 2.43.0
|
||||
⏳ (2) Checking parent folder... 33 subfolders
|
||||
⏳ (3/35) Pulling into 📂base256unicode...
|
||||
⏳ (3/35) Pulling into 📂base256U...
|
||||
...
|
||||
|
||||
```
|
||||
@ -55,7 +55,7 @@ Script Content
|
||||
PS> ./pull-repos C:\MyRepos
|
||||
⏳ (1) Searching for Git executable... git version 2.43.0
|
||||
⏳ (2) Checking parent folder... 33 subfolders
|
||||
⏳ (3/35) Pulling into 📂base256unicode...
|
||||
⏳ (3/35) Pulling into 📂base256U...
|
||||
...
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
@ -94,10 +94,10 @@ try {
|
||||
}
|
||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||
if ($failed -eq 0) {
|
||||
"✅ Updated $numFolders repos at 📂$parentDir in $($elapsed)s."
|
||||
"✅ Pulled into $numFolders repos at 📂$parentDir in $($elapsed)s."
|
||||
exit 0 # success
|
||||
} else {
|
||||
"⚠️ Updated $numFolders repos at 📂$parentDir in $($elapsed)s but $failed failed!"
|
||||
"⚠️ Pulled into $numFolders repos at 📂$parentDir in $($elapsed)s but $failed failed!"
|
||||
exit 1
|
||||
}
|
||||
} catch {
|
||||
@ -106,4 +106,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:59)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:56)*
|
||||
|
Reference in New Issue
Block a user