跳转到主内容

Talosctl 上下文

非官方测试版翻译

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

功能

显示当前活动的 Talosctl 上下文名称。

该片段使用由 Talosctl CLI 生成的 .talos/config 文件。 CLI 文档可在 Documentation > Reference > CLI 路径下找到, 例如 v1.7 CLI

示例配置

{
"type": "talosctl",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#FFFFFF",
"background": "#FF6C00",
"template": " 󱃾 {{ .Context }}"
}

模板 (信息)

默认模板
 {{ .Context }}

属性

NameTypeDescription
.Contextstringthe current talosctl context