mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-16 15:41:52 +02:00
Updated the manuals
This commit is contained in:
@ -6,7 +6,7 @@ This PowerShell script pulls remote updates into a local Git repository (includi
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./pull-repo.ps1 [[-pathToRepo] <String>] [<CommonParameters>]
|
||||
/home/markus/Repos/PowerShell/scripts/pull-repo.ps1 [[-pathToRepo] <String>] [<CommonParameters>]
|
||||
|
||||
-pathToRepo <String>
|
||||
Specifies the file path to the local Git repository (default is working directory)
|
||||
@ -30,7 +30,7 @@ PS> ./pull-repo.ps1
|
||||
⏳ (2/4) Checking local repository... C:\Repos\rust
|
||||
⏳ (3/4) Pulling remote updates...
|
||||
⏳ (4/4) Updating submodules...
|
||||
✔️ Updates pulled into 📂rust repo in 14s.
|
||||
✅ Updates pulled into 📂rust repo in 14s.
|
||||
|
||||
```
|
||||
|
||||
@ -58,7 +58,7 @@ Script Content
|
||||
⏳ (2/4) Checking local repository... C:\Repos\rust
|
||||
⏳ (3/4) Pulling remote updates...
|
||||
⏳ (4/4) Updating submodules...
|
||||
✔️ Updates pulled into 📂rust repo in 14s.
|
||||
✅ Updates pulled into 📂rust repo in 14s.
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -92,7 +92,7 @@ try {
|
||||
if ($lastExitCode -ne "0") { throw "'git submodule update' failed with exit code $lastExitCode" }
|
||||
|
||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||
"✔️ Updates pulled into 📂$pathToRepoName repo in $($elapsed)s."
|
||||
"✅ Updates pulled into 📂$pathToRepoName repo in $($elapsed)s."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) in script line $($_.InvocationInfo.ScriptLineNumber)"
|
||||
@ -100,4 +100,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of pull-repo.ps1 as of 08/15/2024 09:50:53)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of pull-repo.ps1 as of 11/08/2024 12:34:54)*
|
||||
|
Reference in New Issue
Block a user