Last active
November 18, 2023 08:10
-
-
Save ekishouTV/629d80a67d6da289f0e15275f04da444 to your computer and use it in GitHub Desktop.
scoop-outdated: "scoop status" with last update time.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Summary: | |
Update-FormatData "$PSScriptRoot\scoop-outdated.ps1xml" | |
$updates = scoop status | Where-Object Info -NotMatch 'Held' | |
if ($updates) { | |
$appUpdated = @{}; scoop list 6> $null | ForEach-Object { $appUpdated.Add($_.Name, $_.Updated) }; | |
$updates ` | |
| ForEach-Object { | |
$_ | Add-Member -Name 'Last Update Time' -MemberType NoteProperty $appUpdated[$_.Name] | |
} | |
$updates | Add-Member -TypeName 'ScoopOutdated' -PassThru | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Configuration> | |
<ViewDefinitions> | |
<View> | |
<Name>ScoopOutdatedType</Name> | |
<ViewSelectedBy> | |
<TypeName>ScoopOutdated</TypeName> | |
</ViewSelectedBy> | |
<TableControl> | |
<TableRowEntries> | |
<TableRowEntry> | |
<TableColumnItems> | |
<TableColumnItem> | |
<PropertyName>Name</PropertyName> | |
</TableColumnItem> | |
<TableColumnItem> | |
<PropertyName>Installed Version</PropertyName> | |
</TableColumnItem> | |
<TableColumnItem> | |
<PropertyName>Latest Version</PropertyName> | |
</TableColumnItem> | |
<TableColumnItem> | |
<PropertyName>Missing Dependencies</PropertyName> | |
</TableColumnItem> | |
<TableColumnItem> | |
<PropertyName>Info</PropertyName> | |
</TableColumnItem> | |
<TableColumnItem> | |
<PropertyName>Last Update Time</PropertyName> | |
</TableColumnItem> | |
</TableColumnItems> | |
</TableRowEntry> | |
</TableRowEntries> | |
</TableControl> | |
</View> | |
</ViewDefinitions> | |
</Configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example: