mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-12 06:02:56 +02:00
Updated the manuals
This commit is contained in:
@ -15,6 +15,7 @@ Parameters
|
||||
Position? 1
|
||||
Default value "$PWD"
|
||||
Accept pipeline input? false
|
||||
Aliases
|
||||
Accept wildcard characters? false
|
||||
|
||||
[<CommonParameters>]
|
||||
@ -29,7 +30,7 @@ PS> ./clone-repos C:\MyRepos
|
||||
⏳ (1) Searching for Git executable... git version 2.46.0.windows.1
|
||||
⏳ (2) Reading data/popular-repos.csv... 29 repos
|
||||
⏳ (3) Checking target folder... 📂Repos
|
||||
⏳ (4/32) Cloning 📂base256 (dev tool) from git@github.com:fleschutz/talk2windows.git (shallow main branch)...
|
||||
⏳ (4/32) Cloning 📂base256 (dev tool) from git@github.com:fleschutz/talk2windows.git (main branch only)...
|
||||
...
|
||||
|
||||
```
|
||||
@ -57,7 +58,7 @@ Script Content
|
||||
⏳ (1) Searching for Git executable... git version 2.46.0.windows.1
|
||||
⏳ (2) Reading data/popular-repos.csv... 29 repos
|
||||
⏳ (3) Checking target folder... 📂Repos
|
||||
⏳ (4/32) Cloning 📂base256 (dev tool) from git@github.com:fleschutz/talk2windows.git (shallow main branch)...
|
||||
⏳ (4/32) Cloning 📂base256 (dev tool) from git@github.com:fleschutz/talk2windows.git (main branch only)...
|
||||
...
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
@ -72,7 +73,7 @@ try {
|
||||
|
||||
Write-Host "⏳ (1) Searching for Git executable... " -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) Reading data/popular-repos.csv... " -noNewline
|
||||
$table = Import-CSV "$PSScriptRoot/../data/popular-repos.csv"
|
||||
@ -98,14 +99,14 @@ try {
|
||||
"⏳ ($step/$($total + 3)) Skipping 📂$folderName ($category): exists already"
|
||||
$skipped++
|
||||
} elseif ($shallow -eq "yes") {
|
||||
"⏳ ($step/$($total + 3)) Cloning 📂$folderName ($category) from $URL (shallow $branch branch)..."
|
||||
"⏳ ($step/$($total + 3)) Cloning 📂$folderName ($category) from $URL ($branch branch only)..."
|
||||
& git clone --branch "$branch" --single-branch --recurse-submodules "$URL" "$targetDir/$folderName"
|
||||
if ($lastExitCode -ne "0") { throw "'git clone --branch $branch $URL' failed with exit code $lastExitCode" }
|
||||
if ($lastExitCode -ne 0) { throw "'git clone --branch $branch $URL' failed with exit code $lastExitCode" }
|
||||
$cloned++
|
||||
} else {
|
||||
"⏳ ($step/$($total + 3)) Cloning 📂$folderName ($category) from $URL (full $branch branch)..."
|
||||
& git clone --branch "$branch" --recurse-submodules "$URL" "$targetDir/$folderName"
|
||||
if ($lastExitCode -ne "0") { throw "'git clone --branch $branch $URL' failed with exit code $lastExitCode" }
|
||||
if ($lastExitCode -ne 0) { throw "'git clone --branch $branch $URL' failed with exit code $lastExitCode" }
|
||||
$clone++
|
||||
}
|
||||
}
|
||||
@ -118,4 +119,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
||||
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:53)*
|
||||
|
Reference in New Issue
Block a user