Talosctl 上下文
非官方测试版翻译
本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →
功能
显示当前活动的 Talosctl 上下文名称。
该片段使用由 Talosctl CLI 生成的 .talos/config 文件。
CLI 文档可在 Documentation > Reference > CLI 路径下找到,
例如 v1.7 CLI。
示例配置
- json
- yaml
- toml
{
"type": "talosctl",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#FFFFFF",
"background": "#FF6C00",
"template": " {{ .Context }}"
}
type: talosctl
style: powerline
powerline_symbol:
foreground: "#FFFFFF"
background: "#FF6C00"
template: " {{ .Context }}"
type = "talosctl"
style = "powerline"
powerline_symbol = ""
foreground = "#FFFFFF"
background = "#FF6C00"
template = " {{ .Context }}"
模板 (信息)
默认模板
{{ .Context }}
属性
| Name | Type | Description |
|---|---|---|
.Context | string | the current talosctl context |