跳转到主内容

WinGet

非官方测试版翻译

本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →

功能

显示可用的 WinGet 包更新数量。此片段仅在存在可用更新时显示。

信息

此片段仅在 Windows 上可用。

示例配置

{
"type": "winget",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#0077c2",
"template": "  {{ .UpdateCount }} ",
"cache": {
"duration": "24h",
"strategy": "device"
}
}

模板 (信息)

默认模板
 \uf409 {{ .UpdateCount }}

属性

NameTypeDescription
.UpdateCountintthe number of packages with available updates
.Updates[]WinGetPackagearray of packages with available updates

WinGet 包

NameTypeDescription
.Namestringthe package name
.IDstringthe package ID
.Currentstringthe currently installed version
.Availablestringthe available version for update