Contexto de GCP
Traducción Beta No Oficial
Esta página fue traducida por PageTurner AI (beta). No está respaldada oficialmente por el proyecto. ¿Encontraste un error? Reportar problema →
Qué hace
Muestra el proyecto, región y cuenta de GCP activos actualmente
Configuración de ejemplo
- 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}} "
Plantilla (info)
plantilla predeterminada
{{ if .Error }}{{ .Error }}{{ else }}{{ .Project }}{{ end }}
Propiedades
| 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 |