mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-23 23:29:02 +01:00
Improve output
This commit is contained in:
parent
7a57971d0c
commit
73c7d362da
@ -24,7 +24,7 @@ try {
|
||||
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
$Average = [math]::round($Count / $Elapsed, 1)
|
||||
"✔️ $Average domains/s ($Count domains resolved in $Elapsed sec.)"
|
||||
"✔️ $Average domains/s ($Count domains resolved in $Elapsed sec)"
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
@ -25,7 +25,7 @@ try {
|
||||
if ($lastExitCode -ne "0") { throw "'git clean -fdx' in submodules failed" }
|
||||
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
"✔️ cleaned Git repository 📂$RepoDirName in $Elapsed sec."
|
||||
"✔️ cleaned Git repository 📂$RepoDirName in $Elapsed sec"
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
@ -31,7 +31,7 @@ try {
|
||||
}
|
||||
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
"✔️ cleaned $($Folders.Count) Git repositories at 📂$ParentDirName in $Elapsed sec."
|
||||
"✔️ cleaned $($Folders.Count) Git repositories at 📂$ParentDirName in $Elapsed sec"
|
||||
|
||||
exit 0
|
||||
} catch {
|
||||
|
@ -32,7 +32,7 @@ try {
|
||||
$Count++
|
||||
}
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
"✔️ cloned $Count Git repositories at 📂$ParentDir in $Elapsed sec."
|
||||
"✔️ cloned $Count Git repositories at 📂$ParentDir in $Elapsed sec"
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
@ -29,7 +29,7 @@ try {
|
||||
}
|
||||
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
"✔️ fetched $FolderCount Git repositories at 📂$ParentDirName in $Elapsed sec."
|
||||
"✔️ fetched $FolderCount Git repositories at 📂$ParentDirName in $Elapsed sec"
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
@ -109,7 +109,7 @@ try {
|
||||
set-location "$PreviousPath"
|
||||
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
"✔️ built Git repository 📂$RepoDirName in $Elapsed sec."
|
||||
"✔️ built Git repository 📂$RepoDirName in $Elapsed sec"
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
@ -21,7 +21,7 @@ try {
|
||||
}
|
||||
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
"✔️ built $($Folders.Count) Git repositories at 📂$ParentDirName in $Elapsed sec."
|
||||
"✔️ built $($Folders.Count) Git repositories at 📂$ParentDirName in $Elapsed sec"
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
@ -22,7 +22,7 @@ try {
|
||||
|
||||
$RepoDirName = (get-item "$RepoDir").Name
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
"✔️ pulled updates for Git repository 📂$RepoDirName in $Elapsed sec."
|
||||
"✔️ pulled updates for Git repository 📂$RepoDirName in $Elapsed sec"
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
@ -31,7 +31,7 @@ try {
|
||||
}
|
||||
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
"✔️ updated $FolderCount Git repositories at 📂$ParentDirName in $Elapsed sec."
|
||||
"✔️ updated $FolderCount Git repositories at 📂$ParentDirName in $Elapsed sec"
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
@ -53,7 +53,7 @@ try {
|
||||
$fileStream.Dispose()
|
||||
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
"✔️ uploaded 📄$Filename to $URL in $Elapsed sec."
|
||||
"✔️ uploaded 📄$Filename to $URL in $Elapsed sec"
|
||||
exit 0
|
||||
} catch {
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
|
Loading…
Reference in New Issue
Block a user