Aller au contenu principal

Contexte GCP

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

Afficher le projet, la région et le compte GCP actuellement actifs

Exemple de configuration

{
"type": "gcp",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#47888d",
"template": " 󱇶 {{.Project}} :: {{.Account}} "
}

Modèle (info)

modèle par défaut
{{ if .Error }}{{ .Error }}{{ else }}{{ .Project }}{{ end }}

Propriétés

NameTypeDescription
.Projectstringthe currently active project
.Accountstringthe currently active account
.Regionstringdefault region for the active context
.ActiveConfigstringthe active configuration name
.Errorstringcontains any error messages generated when trying to load the GCP config