Skip to main content

Talosctl Context

What

Displays the currently active Talosctl context name.

This segment leverages the .talos/config file generated by the Talosctl CLI. The CLI docs can be found by going to Documentation > Reference > CLI. For example, v1.7 CLI.

Sample Configuration

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

Template (info)

default template
{{ .Context }}

Properties

NameTypeDescription
.Contextstringthe current talosctl context