Skip to main content

GCP Context

Whatโ€‹

Display the currently active GCP project, region and account

Sample Configurationโ€‹

{
"type": "gcp",
"style": "powerline",
"powerline_symbol": "๎‚ฐ",
"foreground": "#ffffff",
"background": "#47888d",
"template": " ๓ฑ‡ถ {{.Project}} :: {{.Account}} "
}

Template (info)โ€‹

default template
{{ if .Error }}{{ .Error }}{{ else }}{{ .Project }}{{ end }}

Propertiesโ€‹

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