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
- json
- yaml
- toml
{
"type": "gcp",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#47888d",
"template": " {{.Project}} :: {{.Account}} "
}
type: gcp
style: powerline
powerline_symbol:
foreground: "#ffffff"
background: "#47888d"
template: " {{.Project}} :: {{.Account}} "
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
| Name | Type | Description |
|---|---|---|
.Project | string | the currently active project |
.Account | string | the currently active account |
.Region | string | default region for the active context |
.ActiveConfig | string | the active configuration name |
.Error | string | contains any error messages generated when trying to load the GCP config |