You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (-not [string]::IsNullOrWhiteSpace($Result.LookupCandidateVersion) -and-not [string]::IsNullOrWhiteSpace($Result.LookupRepository)) {
58
-
return"Installed: $($Result.ModuleName)$($Result.CurrentVersion). $($Result.LookupRepository) currently reports $($Result.LookupCandidateVersion) as the latest update candidate checked."
59
-
}
60
-
61
-
if (-not [string]::IsNullOrWhiteSpace($Result.LookupCandidateVersion)) {
62
-
return"Installed: $($Result.ModuleName)$($Result.CurrentVersion). The current update lookup reports $($Result.LookupCandidateVersion) as the latest candidate checked."
63
-
}
64
-
65
-
return"Installed: $($Result.ModuleName)$($Result.CurrentVersion). No update candidate is currently available from the configured update source."
66
-
}
67
-
68
53
functionFormat-NovaCliCommandResult {
69
54
[CmdletBinding()]
70
55
param(
@@ -74,8 +59,8 @@ function Format-NovaCliCommandResult {
74
59
75
60
if (Test-NovaCliNoUpdateResult-Command $Command-Result $Result) {
76
61
return@(
77
-
'No update was applied.'
78
-
(Get-NovaCliNoUpdateDetail-Result$Result)
62
+
"You're up to date!"
63
+
"$($Result.ModuleName)$($Result.CurrentVersion) is currently the newest version available."
0 commit comments