升级提示
非官方测试版翻译
本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →
功能
当 Oh My Posh 有可用更新时显示。
示例配置
- json
- yaml
- toml
{
"type": "upgrade",
"style": "plain",
"foreground": "#111111",
"background": "#FFD664",
"options": {
"cache_duration": "168h"
}
}
type: upgrade
style: plain
foreground: "#111111"
background: "#FFD664"
options:
cache_duration: 168h
type = "upgrade"
style = "plain"
foreground = "#111111"
background = "#FFD664"
[options]
cache_duration = "168h"
选项
| Name | Type | Default | Description |
|---|---|---|---|
cache_duration | string | 168h | the duration for which the segment will be cached. The duration is a string in the format 1h2m3s and is parsed using the time.ParseDuration function from the Go standard library. To disable the cache, use none |
模板 (信息)
默认模板
\uf019
属性
| Name | Type | Description |
|---|---|---|
.Current | string | the current version number |
.Latest | string | the latest available version number |