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
.Errorstringcontains any error messages generated when trying to load the GCP config