ArgoCD 上下文
非官方测试版翻译
本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →
功能
显示当前的 ArgoCD 上下文名称、用户和/或服务器信息。
示例配置
- json
- yaml
- toml
{
"type": "argocd",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#FFA400",
"template": " {{ .Name }}:{{ .User }}@{{ .Server }} "
}
type: argocd
style: powerline
powerline_symbol:
foreground: "#ffffff"
background: "#FFA400"
template: " {{ .Name }}:{{ .User }}@{{ .Server }} "
type = "argocd"
style = "powerline"
powerline_symbol = ""
foreground = "#ffffff"
background = "#FFA400"
template = " {{ .Name }}:{{ .User }}@{{ .Server }} "
模板 (信息)
默认模板
{{ .Name }}
属性
| Name | Type | Description |
|---|---|---|
.Name | string | the current context name |
.Server | string | the server of the current context |
.User | string | the user of the current context |