Contexte Talosctl
Traduction Bêta Non Officielle
Cette page a été traduite par PageTurner AI (bêta). Non approuvée officiellement par le projet. Vous avez trouvé une erreur ? Signaler un problème →
Description
Affiche le nom du contexte actif de Talosctl.
Ce segment utilise le fichier .talos/config généré par l'interface CLI Talosctl.
La documentation CLI est accessible via Documentation > Référence > CLI.
Par exemple, CLI v1.7.
Exemple de configuration
- 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 }}"
Modèle (info)
modèle par défaut
{{ .Context }}
Propriétés
| Name | Type | Description |
|---|---|---|
.Context | string | the current talosctl context |