mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-10 05:17:44 +02:00
Updated the manuals
This commit is contained in:
@ -15,6 +15,7 @@ Parameters
|
||||
Position? 1
|
||||
Default value
|
||||
Accept pipeline input? false
|
||||
Aliases
|
||||
Accept wildcard characters? false
|
||||
|
||||
-Mode <String>
|
||||
@ -24,6 +25,7 @@ Parameters
|
||||
Position? 2
|
||||
Default value
|
||||
Accept pipeline input? false
|
||||
Aliases
|
||||
Accept wildcard characters? false
|
||||
|
||||
-RepoDir <String>
|
||||
@ -33,6 +35,7 @@ Parameters
|
||||
Position? 3
|
||||
Default value "$PWD"
|
||||
Accept pipeline input? false
|
||||
Aliases
|
||||
Accept wildcard characters? false
|
||||
|
||||
[<CommonParameters>]
|
||||
@ -88,18 +91,18 @@ try {
|
||||
if (-not(test-path "$RepoDir" -pathType container)) { throw "Can't access directory: $RepoDir" }
|
||||
|
||||
$Null = (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" }
|
||||
|
||||
if (($Mode -eq "locally") -or ($Mode -eq "both")) {
|
||||
"Removing local tag..."
|
||||
& git -C "$RepoDir" tag --delete $TagName
|
||||
if ($lastExitCode -ne "0") { throw "'git tag --delete' failed with exit code $lastExitCode" }
|
||||
if ($lastExitCode -ne 0) { throw "'git tag --delete' failed with exit code $lastExitCode" }
|
||||
}
|
||||
|
||||
if (($Mode -eq "remote") -or ($Mode -eq "both")) {
|
||||
"Removing remote tag..."
|
||||
& git -C "$RepoDir" push origin :refs/tags/$TagName
|
||||
if ($lastExitCode -ne "0") { throw "'git push origin' failed with exit code $lastExitCode" }
|
||||
if ($lastExitCode -ne 0) { throw "'git push origin' failed with exit code $lastExitCode" }
|
||||
}
|
||||
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
@ -111,4 +114,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)*
|
||||
|
Reference in New Issue
Block a user