WinGet
Traducción Beta No Oficial
Esta página fue traducida por PageTurner AI (beta). No está respaldada oficialmente por el proyecto. ¿Encontraste un error? Reportar problema →
Qué hace
Muestra el número de actualizaciones de paquetes disponibles de WinGet. Este segmento solo aparece cuando hay actualizaciones disponibles.
información
Este segmento solo está disponible en Windows.
Configuración de ejemplo
- json
- yaml
- toml
{
"type": "winget",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#0077c2",
"template": " {{ .UpdateCount }} ",
"cache": {
"duration": "24h",
"strategy": "device"
}
}
type: winget
style: powerline
powerline_symbol:
foreground: "#ffffff"
background: "#0077c2"
template: " {{ .UpdateCount }} "
cache:
duration: 24h
strategy: device
type = "winget"
style = "powerline"
powerline_symbol = ""
foreground = "#ffffff"
background = "#0077c2"
template = " {{ .UpdateCount }} "
[cache]
duration = "24h"
strategy = "device"
Plantilla (info)
plantilla predeterminada
\uf409 {{ .UpdateCount }}
Propiedades
| Name | Type | Description |
|---|---|---|
.UpdateCount | int | the number of packages with available updates |
.Updates | []WinGetPackage | array of packages with available updates |
WinGetPackage
| Name | Type | Description |
|---|---|---|
.Name | string | the package name |
.ID | string | the package ID |
.Current | string | the currently installed version |
.Available | string | the available version for update |