GCP Context
Whatโ
Display the currently active GCP project, region and account
Sample 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}} "
Template (info)โ
default template
{{ if .Error }}{{ .Error }}{{ else }}{{ .Project }}{{ end }}
Propertiesโ
Name | Type | Description |
---|---|---|
.Project | string | the currently active project |
.Account | string | the currently active account |
.Region | string | default region for the active context |
.Error | string | contains any error messages generated when trying to load the GCP config |