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 |